Boost logo

Boost Users :

Subject: [Boost-users] MPL. Nested Lambdas
From: dilas dilas (espiritusantu_at_[hidden])
Date: 2010-02-20 14:57:34


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.


Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net