I did something along the lines of 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 that function in my semantic actions.
I was wondering if I can use some kind of a one-liner in my semantic code instead (of creating the struct)?
Thanks!