
9 Dec
2009
9 Dec
'09
9:57 p.m.
I would like to be able to: * return multiple results from a lambda function * use temporary variables inside a lambda function, declared using BOOST_AUTO * I would need the ability to deduce the type of the returned values via BOOST_AUTO to declare the matching variables. I think I could use boost::tuple for this: const BOOST_AUTO(sTupleVar, someThing); const BOOST_AUTO(sFirstResult, get<0>(sTupleVar)); const BOOST_AUTO(sSecond, get<1>(sTupleVar)); But how to declare a local variable inside a lambda function? Peter