#ifndef SPROUT_WEED_TRAITS_EXPR_TERMINAL_OF_HPP #define SPROUT_WEED_TRAITS_EXPR_TERMINAL_OF_HPP #include #include #include #include #include #include #include namespace sprout { namespace weed { namespace traits { // // terminal_of // template struct terminal_of; template struct terminal_of< Arg, typename std::enable_if< !sprout::weed::traits::is_c_str< typename sprout::remove_shallow_cvref::type >::value >::type > { public: typedef sprout::weed::expr< sprout::weed::tag::terminal, typename sprout::remove_shallow_cvref::type > type; }; template struct terminal_of< Arg, typename std::enable_if< sprout::weed::traits::is_c_str< typename sprout::remove_shallow_cvref::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::type >::type > type; }; } // namespace traits } // namespace weed } // namespace sprout #endif // #ifndef SPROUT_WEED_TRAITS_EXPR_TERMINAL_OF_HPP