Re: [Boost-users] MPL. Nested Lambdas

22 Feb
2010
22 Feb
'10
8:21 p.m.
Steven Watanabe wrote:
Please, tell me if one can write nested lambda expressions like
" template
struct pairs: bm::fold >Result, bm::push_back<_1,bm::pair > >{}; 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
dilas dilas wrote: pairs is ever invoked.
Here I've presented the example of "intermediate metafunction" i.e pairs. And I'm speaking about writing just one metafunction using nested construction. Is it possible? Yours respectfully, Dilas
5480
Age (days ago)
5480
Last active (days ago)
0 comments
1 participants
participants (1)
-
dilas dilas