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

@ -20,6 +20,7 @@
#include <sprout/string/npos.hpp>
#include <sprout/string/string.hpp>
#include <sprout/string/detail/operations.hpp>
#include <sprout/type_traits/integral_constant.hpp>
#include HDR_ALGORITHM_MIN_MAX_SSCRISK_CEL_OR_SPROUT
#if SPROUT_USE_INDEX_ITERATOR_IMPLEMENTATION
# include <sprout/iterator/index_iterator.hpp>
@ -53,7 +54,7 @@ namespace sprout {
private:
template<typename Iterator>
class is_string_ref_iterator
: public std::integral_constant<
: public sprout::integral_constant<
bool,
std::is_same<Iterator, sprout::index_iterator<basic_string_ref&, true> >::value
|| std::is_same<Iterator, sprout::index_iterator<basic_string_ref const&, true> >::value

View file

@ -8,9 +8,9 @@
#ifndef SPROUT_UTILITY_STRING_REF_TYPE_TRAITS_HPP
#define SPROUT_UTILITY_STRING_REF_TYPE_TRAITS_HPP
#include <type_traits>
#include <sprout/config.hpp>
#include <sprout/utility/string_ref/string_ref.hpp>
#include <sprout/type_traits/integral_constant.hpp>
namespace sprout {
//
@ -18,7 +18,7 @@ namespace sprout {
//
template<typename T>
struct is_basic_string_ref
: public std::false_type
: public sprout::false_type
{};
template<typename T>
struct is_basic_string_ref<T const>
@ -30,7 +30,7 @@ namespace sprout {
{};
template<typename T, typename Traits>
struct is_basic_string_ref<sprout::basic_string_ref<T, Traits> >
: public std::true_type
: public sprout::true_type
{};
//
@ -38,7 +38,7 @@ namespace sprout {
//
template<typename T, typename Elem>
struct is_string_ref_of
: public std::false_type
: public sprout::false_type
{};
template<typename T, typename Elem>
struct is_string_ref_of<T const, Elem>
@ -50,7 +50,7 @@ namespace sprout {
{};
template<typename T, typename Traits, typename Elem>
struct is_string_ref_of<sprout::basic_string_ref<T, Traits>, Elem>
: public std::true_type
: public sprout::true_type
{};
//