I think where boost.Phoenix still bas added value, beside only syntax difference, is for polymorphic lambda . This is espacially usefull if you are using Phoenix in conjunction with boost.fusion for instance. Stephane. Le ven. 15 mai 2015 14:18, Krzysztof Czainski <1czajnik@gmail.com> a écrit :
2015-05-15 12:07 GMT+02:00 Robert Jones
: I'm sure this has been asked before, and apologies in advance to the programming gods of Boost.Phoenix, but has Phoenix effectively been replaced by language lambdas, or are there still things for which Phoenix is the best answer?
Thx, Rob.
A pair of super-simple example:
boost::for_each(v, _1 = _1 * _1); boost::for_each(v, [](auto& x) { x = x * x; });
boost::transform(v, out, _1 * _1); boost::transform(v, out, [](auto& x) { return x * x; });
My choice for these super-simple examples: Phoenix.
And Phoenix can do so much more...
Cheers, Kris _______________________________________________ Boost-users mailing list Boost-users@lists.boost.org http://lists.boost.org/mailman/listinfo.cgi/boost-users