You have to use lambda::bind with lambda, they aren't quite interchangable yet.
-Gary- -----Original Message----- From: Craigp [mailto:[EMAIL PROTECTED] Sent: Sunday, August 24, 2003 10:28 PM To: [EMAIL PROTECTED] Subject: [boost] bind + lambda example fails on msvc2003 I tried the following example (taken from http://boost.org/libs/lambda/doc/ar01s05.html#sect:construction_and_destruction) , and it failed to compile: std::vector<int> x(10); std::vector<int> y(10); std::vector<std::pair<int, int> > pairs; std::transform(x.begin(), x.end(), y.begin(), std::back_inserter(pairs), boost::bind(boost::lambda::constructor<std::pair<int, int> >(), _1, _2)); _______________________________________________ Unsubscribe & other changes: http://lists.boost.org/mailman/listinfo.cgi/boost