Ignore:
Timestamp:
2018-07-05T21:41:23Z (7 years ago)
Author:
Dzejrou <dzejrou@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
f6f636f
Parents:
0e5e8bf9
git-author:
Dzejrou <dzejrou@…> (2018-05-12 17:12:15)
git-committer:
Dzejrou <dzejrou@…> (2018-07-05 21:41:23)
Message:

cpp: removed usage of _v aliases and added forward declarations instead, this avoids possible circular reference

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/lib/cpp/include/internal/functional/hash.hpp

    r0e5e8bf9 r8f8f1d1e  
    3030#define LIBCPP_INTERNAL_FUNCTIONAL_HASH
    3131
     32#include <cstdlib>
     33
    3234namespace std
    3335{
     36    template<class>
     37    struct is_arithmetic;
     38
     39    template<class>
     40    struct is_pointer;
     41
    3442    /**
    3543     * 20.9.13, hash function primary template:
     
    6472        size_t hash(T x) noexcept
    6573        {
    66             static_assert(is_arithmetic_v<T> || is_pointer_v<T>,
     74            static_assert(is_arithmetic<T>::value || is_pointer<T>::value,
    6775                          "invalid type passed to aux::hash");
    6876
Note: See TracChangeset for help on using the changeset viewer.