mirror of
https://github.com/bolero-MURAKAMI/Sprout.git
synced 2025-07-14 15:04:09 +00:00
modify namespace result_of -> results
support C++14 type_traits
This commit is contained in:
parent
d386893a74
commit
bf0c7021cf
350 changed files with 2628 additions and 1912 deletions
|
@ -8,9 +8,9 @@
|
|||
#ifndef SPROUT_TPP_ALGORITHM_ONE_OF_HPP
|
||||
#define SPROUT_TPP_ALGORITHM_ONE_OF_HPP
|
||||
|
||||
#include <type_traits>
|
||||
#include <sprout/config.hpp>
|
||||
#include <sprout/tpp/algorithm/none_of.hpp>
|
||||
#include <sprout/type_traits/integral_constant.hpp>
|
||||
|
||||
namespace sprout {
|
||||
namespace tpp {
|
||||
|
@ -19,15 +19,15 @@ namespace sprout {
|
|||
struct one_of_impl;
|
||||
template<>
|
||||
struct one_of_impl<>
|
||||
: public std::false_type
|
||||
: public sprout::false_type
|
||||
{};
|
||||
template<>
|
||||
struct one_of_impl<true>
|
||||
: public std::true_type
|
||||
: public sprout::true_type
|
||||
{};
|
||||
template<>
|
||||
struct one_of_impl<false>
|
||||
: public std::false_type
|
||||
: public sprout::false_type
|
||||
{};
|
||||
template<bool... Tail>
|
||||
struct one_of_impl<true, Tail...>
|
||||
|
@ -35,7 +35,7 @@ namespace sprout {
|
|||
{};
|
||||
template<bool... Tail>
|
||||
struct one_of_impl<false, Tail...>
|
||||
: public std::integral_constant<bool, sprout::tpp::detail::one_of_impl<Tail...>::value>
|
||||
: public sprout::integral_constant<bool, sprout::tpp::detail::one_of_impl<Tail...>::value>
|
||||
{};
|
||||
} // namespace detail
|
||||
//
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue