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,9 +8,9 @@
|
|||
#ifndef SPROUT_VARIANT_TYPE_TRAITS_HPP
|
||||
#define SPROUT_VARIANT_TYPE_TRAITS_HPP
|
||||
|
||||
#include <type_traits>
|
||||
#include <sprout/config.hpp>
|
||||
#include <sprout/variant/variant_fwd.hpp>
|
||||
#include <sprout/type_traits/integral_constant.hpp>
|
||||
|
||||
namespace sprout {
|
||||
//
|
||||
|
@ -18,7 +18,7 @@ namespace sprout {
|
|||
//
|
||||
template<typename T>
|
||||
struct is_variant
|
||||
: public std::false_type
|
||||
: public sprout::false_type
|
||||
{};
|
||||
template<typename T>
|
||||
struct is_variant<T const>
|
||||
|
@ -30,7 +30,7 @@ namespace sprout {
|
|||
{};
|
||||
template<typename... Types>
|
||||
struct is_variant<sprout::variant<Types...> >
|
||||
: public std::true_type
|
||||
: public sprout::true_type
|
||||
{};
|
||||
} // namespace sprout
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue