Boost Users :
Subject: [Boost-users] boost::lambda questions
From: Peter Foelsche (peter_foelsche_at_[hidden])
Date: 2009-12-09 16:57:18
I would like to be able to:
* return multiple results from a lambda function
* use temporary variables inside a lambda function, declared using
* 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?
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