$include_dir="/home/hyper-archives/boost/include"; include("$include_dir/msg-header.inc") ?>
From: firingme (firingme_at_[hidden])
Date: 2003-05-29 23:00:16
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