What are the benefits of using Boost.Phoenix?
Posted
by
Denis Shevchenko
on Stack Overflow
See other posts from Stack Overflow
or by Denis Shevchenko
Published on 2011-02-16T07:06:59Z
Indexed on
2011/02/16
7:25 UTC
Read the original article
Hit count: 453
Hello all!
I can not understand what the real benefits of using Boost.Phoenix.
When I use it with Boost.Spirit grammars, it's really useful:
double_[ boost::phoenix::push_back( boost::phoenix::ref( v ), _1 ) ]
When I use it for lambda functions, it's also useful and elegant:
boost::range::for_each( my_string, if_ ( '\\' == arg1 ) [ arg1 = '/' ] );
But what are the benefits of everything else in this library? The documentation says: "Functors everywhere". I don't understand what is the good of it?
© Stack Overflow or respective owner