1
0
Fork 0
mirror of https://github.com/bolero-MURAKAMI/Sprout synced 2025-08-03 12:49:50 +00:00

all type_traits support C++14 requirements

This commit is contained in:
bolero-MURAKAMI 2013-11-22 21:11:08 +09:00
parent bf0c7021cf
commit 403e83eaf0
95 changed files with 319 additions and 268 deletions

View file

@ -15,12 +15,13 @@
#include <sprout/limits.hpp>
#include <sprout/functional/hash/hash_fwd.hpp>
#include <sprout/functional/hash/detail/hash_float.hpp>
#include <sprout/type_traits/integral_constant.hpp>
namespace sprout {
namespace hash_detail {
template<typename T>
struct is_basic_number
: public std::integral_constant<
: public sprout::integral_constant<
bool,
std::is_integral<T>::value
&& (sizeof(T) <= sizeof(std::size_t))
@ -28,7 +29,7 @@ namespace sprout {
{};
template<typename T>
struct is_long_number
: public std::integral_constant<
: public sprout::integral_constant<
bool,
std::is_integral<T>::value
&& (sizeof(T) > sizeof(std::size_t))
@ -37,7 +38,7 @@ namespace sprout {
{};
template<typename T>
struct is_ulong_number
: public std::integral_constant<
: public sprout::integral_constant<
bool,
std::is_integral<T>::value
&& (sizeof(T) > sizeof(std::size_t))