21 Dec
2004
21 Dec
'04
2:11 p.m.
Aleksey Gurtovoy wrote:
Answering the OP question: MPL lambda expressions do not support scopes (yet), so it's not possible to implement the above without an auxiliary metafunction incapsulating the nested scope. Which actually might be a good thing -- it's hard to imagine that the "inline" version would be shorter and easier to understand than this:
template< typename Map, typename Entry > struct copy_entires : copy< typename Entry::second::entries , inserter
typedef fold
>::type result;
In that case, can you explain what protect<> is for? Thanks, -- Dave Abrahams Boost Consulting http://www.boost-consulting.com