#ifndef SPROUT_WEED_EXPR_MAKE_TERMINAL_HPP #define SPROUT_WEED_EXPR_MAKE_TERMINAL_HPP #include #include #include #include #include #include #include namespace sprout { namespace weed { // // make_terminal // template inline SPROUT_CONSTEXPR typename std::enable_if< !sprout::weed::traits::is_c_str< typename sprout::remove_shallow_cvref::type >::value, typename sprout::weed::traits::terminal_of::type >::type make_terminal(Arg&& arg) { return typename sprout::weed::traits::terminal_of::type( sprout::forward(arg) ); } template inline SPROUT_CONSTEXPR typename std::enable_if< sprout::weed::traits::is_c_str< typename sprout::remove_shallow_cvref::type >::value, typename sprout::weed::traits::terminal_of::type >::type make_terminal(Arg&& arg) { return typename sprout::weed::traits::terminal_of::type( sprout::to_string(sprout::forward(arg)) ); } } // namespace weed } // namespace sprout #endif // #ifndef SPROUT_WEED_EXPR_MAKE_TERMINAL_HPP