I did something like creating a struct for phoenix::function
struct to_upper_impl { template <typename T1> struct result { typedef std::string type; }; std::string operator()(const std::string & s) const { return boost::algorithm::to_upper_copy(s); } }; boost::phoenix::function<to_upper_impl> to_upper;
and then using this function in my semantic actions.
I was wondering if I can use some kind of one-liner in semantic code instead of creating a structure?
Thanks!
source share