1
0
Fork 0
mirror of https://github.com/bolero-MURAKAMI/Sprout synced 2025-08-03 12:49:50 +00:00

fix adaptors alternated, taken, dropped, etc...

This commit is contained in:
bolero-MURAKAMI 2012-12-01 03:00:46 +09:00
parent 84e3348402
commit 86818d73cb
16 changed files with 207 additions and 157 deletions

View file

@ -18,18 +18,6 @@ namespace sprout {
template<typename T, typename = void>
struct is_parser;
template<typename T>
struct is_parser<
T,
typename std::enable_if<
std::is_const<T>::value
&& !std::is_array<T>::value
>::type
>
: public sprout::weed::traits::is_parser<
typename std::remove_const<T>::type
>
{};
template<typename T>
struct is_parser<
T,
typename std::enable_if<
@ -68,6 +56,18 @@ namespace sprout {
>
: public std::true_type
{};
template<typename T>
struct is_parser<
T,
typename std::enable_if<
std::is_const<T>::value
&& !std::is_array<T>::value
>::type
>
: public sprout::weed::traits::is_parser<
typename std::remove_const<T>::type
>
{};
} // namespace traits
} // namespace weed
} // namespace sprout