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,12 +12,13 @@
|
|||
#include <sprout/config.hpp>
|
||||
#include <sprout/index_tuple/integer_sequence.hpp>
|
||||
#include <sprout/index_tuple/enable_make_indexes.hpp>
|
||||
#include <sprout/type_traits/integral_constant.hpp>
|
||||
|
||||
namespace sprout {
|
||||
namespace detail {
|
||||
template<typename T, T First, T Last>
|
||||
struct integer_range_default_step
|
||||
: public std::integral_constant<typename std::make_signed<T>::type, (First <= Last ? 1 : -1)>
|
||||
: public sprout::integral_constant<typename std::make_signed<T>::type, (First <= Last ? 1 : -1)>
|
||||
{};
|
||||
} // namespace detail
|
||||
|
||||
|
|
|
@ -10,11 +10,11 @@
|
|||
|
||||
#include <cstddef>
|
||||
#include <tuple>
|
||||
#include <type_traits>
|
||||
#include <sprout/config.hpp>
|
||||
#include <sprout/index_tuple/integer_sequence.hpp>
|
||||
#include <sprout/index_tuple/index_tuple.hpp>
|
||||
#include <sprout/utility/pack.hpp>
|
||||
#include <sprout/type_traits/integral_constant.hpp>
|
||||
|
||||
namespace std {
|
||||
#if defined(__clang__)
|
||||
|
@ -26,7 +26,7 @@ namespace std {
|
|||
//
|
||||
template<typename T, T... Is>
|
||||
struct tuple_size<sprout::integer_sequence<T, Is...> >
|
||||
: public std::integral_constant<std::size_t, sizeof...(Is)>
|
||||
: public sprout::integral_constant<std::size_t, sizeof...(Is)>
|
||||
{};
|
||||
//
|
||||
// tuple_element
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue