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:
parent
bf0c7021cf
commit
403e83eaf0
95 changed files with 319 additions and 268 deletions
|
@ -8,8 +8,9 @@
|
|||
#ifndef SPROUT_ADL_NOT_FOUND_HPP
|
||||
#define SPROUT_ADL_NOT_FOUND_HPP
|
||||
|
||||
#include <type_traits>
|
||||
#include <sprout/config.hpp>
|
||||
#include <sprout/type_traits/integral_constant.hpp>
|
||||
#include <sprout/type_traits/std_type_traits.hpp>
|
||||
|
||||
namespace sprout {
|
||||
//
|
||||
|
@ -22,7 +23,7 @@ namespace sprout {
|
|||
//
|
||||
template<typename T>
|
||||
struct is_not_found_via_adl
|
||||
: public std::is_same<T, sprout::not_found_via_adl>
|
||||
: public sprout::is_same<T, sprout::not_found_via_adl>
|
||||
{};
|
||||
template<typename T>
|
||||
struct is_not_found_via_adl<T const>
|
||||
|
@ -42,7 +43,7 @@ namespace sprout {
|
|||
//
|
||||
template<typename T>
|
||||
struct is_found_via_adl
|
||||
: public std::integral_constant<bool, !sprout::is_not_found_via_adl<T>::value>
|
||||
: public sprout::integral_constant<bool, !sprout::is_not_found_via_adl<T>::value>
|
||||
{};
|
||||
} // namespace sprout
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue