consider the following code : test.cpp ************************************************************* #include <boost/lambda/lambda.hpp> #include <boost/lambda/bind.hpp>
#include <list> #include <algorithm> #include <iostream> #include <vector> using namespace std ; using namespace boost ; using namespace boost::lambda; int main(){ int i = 1 ; cout << ( _1+i)(i=2) << endl; } ************************************************************* Result Table: ************************************************************* Compiler Result VC7.1 4 GCC3.2.3 ( MingW versiong ) 4 GCC3.3 (i686-pc-cygwin) 3 as in lambda's doc , the result should be 3 . Any help is welcome thx _______________________________________________ Unsubscribe & other changes: http://lists.boost.org/mailman/listinfo.cgi/boost