Boost logo

Boost Testing :

Subject: [Boost-testing] Aquestion on lambda under Dev-C++.Can anyone with kindness help me?
From: fmingu (fmingu_at_[hidden])
Date: 2009-06-26 20:37:19


By using Dev-C++ 4.9.8.0,I used boost::lambda£¬and the program contains the following lines£º
..........
typedef std::pair <int, int> mypair;
bind(&mypair,1,6);
...................
but the complier told me that£º

parse error before `,' token

but when I use
mypair£¨1£¬6£©£»instead of bind(&mypair,1,6); then everything is ok.
Can anyone with kindness tell me why and how to solve it by using the function bind ?



Boost-testing list run by mbergal at meta-comm.com