mirror of
https://github.com/bolero-MURAKAMI/Sprout.git
synced 2025-07-04 14:14:09 +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
|
@ -19,6 +19,7 @@
|
|||
#include <sprout/range/adaptor/size_enumed.hpp>
|
||||
#include <sprout/range/algorithm/lower_bound.hpp>
|
||||
#include <sprout/range/numeric/partial_sum.hpp>
|
||||
#include <sprout/type_traits/integral_constant.hpp>
|
||||
#include <sprout/type_traits/is_c_str.hpp>
|
||||
|
||||
namespace sprout {
|
||||
|
@ -31,7 +32,7 @@ namespace sprout {
|
|||
String,
|
||||
typename std::enable_if<sprout::is_c_str<String>::value>::type
|
||||
>
|
||||
: public std::integral_constant<
|
||||
: public sprout::integral_constant<
|
||||
typename sprout::container_traits<String>::size_type,
|
||||
sprout::container_traits<String>::static_size - 1
|
||||
>
|
||||
|
@ -41,7 +42,7 @@ namespace sprout {
|
|||
String,
|
||||
typename std::enable_if<!sprout::is_c_str<String>::value>::type
|
||||
>
|
||||
: public std::integral_constant<
|
||||
: public sprout::integral_constant<
|
||||
typename sprout::container_traits<String>::size_type,
|
||||
sprout::container_traits<String>::static_size
|
||||
>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue