
20 Feb
2010
20 Feb
'10
8:21 p.m.
AMDG dilas dilas wrote:
Please, tell me if one can write nested lambda expressions like
" template<class Result, class Seq, class Elem> struct pairs: bm::fold<Seq, Result, bm::push_back<_1,bm::pair<Elem, _2 > > >{}; template<class Seq1, class Seq2> struct AllPairs: bm::fold<Seq1, bm::vector<>, 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. In Christ, Steven Watanabe