
13 Jun
2008
13 Jun
'08
10:59 p.m.
albert meyburgh wrote:
Hi,
I'm trying to use the lambda constructor provided in boost and it's not compiling.
class someclass { someclass(sometype, int x) }
std::vector v<sometype> std::vector v2<someclass> std::transform( v.begin(), v.end(), std::back_inserter( v2 ), boost::bind( boost::lambda::constructor<someclass>(),
Try boost::lambda::bind() instead of boost::bind(). -- Eric Niebler BoostPro Computing http://www.boostpro.com