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

fix weed type_traits

This commit is contained in:
bolero-MURAKAMI 2013-03-25 12:43:47 +09:00
parent f712788cce
commit c78e1d0e6d
27 changed files with 279 additions and 306 deletions

View file

@ -3,6 +3,7 @@
#include <type_traits>
#include <sprout/config.hpp>
#include <sprout/type_traits/identity.hpp>
#include <sprout/type_traits/remove_shallow_cvref.hpp>
#include <sprout/weed/expr/expr_fwd.hpp>
#include <sprout/weed/expr/tag.hpp>
@ -25,13 +26,14 @@ namespace sprout {
typename sprout::remove_shallow_cvref<Arg>::type
>::value
>::type
> {
public:
typedef sprout::weed::expr<
sprout::weed::tag::terminal,
typename sprout::remove_shallow_cvref<Arg>::type
> type;
};
>
: public sprout::identity<
sprout::weed::expr<
sprout::weed::tag::terminal,
typename sprout::remove_shallow_cvref<Arg>::type
>
>
{};
template<typename Arg>
struct terminal_of<
Arg,
@ -40,15 +42,16 @@ namespace sprout {
typename sprout::remove_shallow_cvref<Arg>::type
>::value
>::type
> {
public:
typedef sprout::weed::expr<
sprout::weed::tag::terminal,
typename sprout::weed::detail::c_str_as_string<
typename sprout::remove_shallow_cvref<Arg>::type
>::type
> type;
};
>
: public sprout::identity<
sprout::weed::expr<
sprout::weed::tag::terminal,
typename sprout::weed::detail::c_str_as_string<
typename sprout::remove_shallow_cvref<Arg>::type
>::type
>
>
{};
} // namespace traits
} // namespace weed
} // namespace sprout