21 Feb
2010
21 Feb
'10
12:56 a.m.
On Sat, Feb 20, 2010 at 1:21 PM, Steven Watanabe
AMDG
dilas dilas wrote:
Please, tell me if one can write nested lambda expressions like
" template
struct pairs: bm::fold > >{}; template struct AllPairs: bm::fold , pairs<_1,Seq2,_2> >{}; " without using intermediate metafunctions.
This ought to work, since the placeholders in AllPairs will be expanded before pairs is ever invoked.
I do not know about Lambda, but I know that you can create sub-functors in phoenix just fine, it has specific constructs for that too. If you do not know, Boost.Phoenix is a complete replacement for Boost.Lambda, plus a lot more. http://www.boost.org/doc/libs/1_42_0/libs/spirit/phoenix/doc/html/index.html