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
|
@ -12,6 +12,7 @@
|
|||
#include <sprout/config.hpp>
|
||||
#include <sprout/utility/swap.hpp>
|
||||
#include <sprout/detail/call_traits.hpp>
|
||||
#include <sprout/type_traits/integral_constant.hpp>
|
||||
|
||||
namespace sprout {
|
||||
namespace detail {
|
||||
|
@ -19,27 +20,27 @@ namespace sprout {
|
|||
struct compressed_pair_switch;
|
||||
template<typename T1, typename T2>
|
||||
struct compressed_pair_switch<T1, T2, false, false, false>
|
||||
: public std::integral_constant<int, 0>
|
||||
: public sprout::integral_constant<int, 0>
|
||||
{};
|
||||
template<typename T1, typename T2>
|
||||
struct compressed_pair_switch<T1, T2, false, true, false>
|
||||
: public std::integral_constant<int, 1>
|
||||
: public sprout::integral_constant<int, 1>
|
||||
{};
|
||||
template<typename T1, typename T2>
|
||||
struct compressed_pair_switch<T1, T2, false, false, true>
|
||||
: public std::integral_constant<int, 2>
|
||||
: public sprout::integral_constant<int, 2>
|
||||
{};
|
||||
template<typename T1, typename T2>
|
||||
struct compressed_pair_switch<T1, T2, false, true, true>
|
||||
: public std::integral_constant<int, 3>
|
||||
: public sprout::integral_constant<int, 3>
|
||||
{};
|
||||
template<typename T1, typename T2>
|
||||
struct compressed_pair_switch<T1, T2, true, true, true>
|
||||
: public std::integral_constant<int, 4>
|
||||
: public sprout::integral_constant<int, 4>
|
||||
{};
|
||||
template<typename T1, typename T2>
|
||||
struct compressed_pair_switch<T1, T2, true, false, false>
|
||||
: public std::integral_constant<int, 5>
|
||||
: public sprout::integral_constant<int, 5>
|
||||
{};
|
||||
|
||||
template<typename T1, typename T2, int Version>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue