Aquestion on lambda under Dev-C++.Can anyone with kindness help me?

View: New views
1 Messages — Rating Filter:   Alert me  

Aquestion on lambda under Dev-C++.Can anyone with kindness help me?

by fmingu :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

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 ? 




200万种商品,最低价格,疯狂诱惑你

_______________________________________________
Boost-Testing mailing list
Boost-Testing@...
http://lists.boost.org/mailman/listinfo.cgi/boost-testing