A question on boost lambda . Can anyone with kindness help me?

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

A question on boost lambda . Can anyone with kindness help me?

by fmingu :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Under Dev-C++, I used boost lambda
.............
typedef std::map<int, int> IIPrimemap;
IIPrimemap primemapvec;
typedef std::pair<int, int> IIPrimepair;
IIPrimepair  v=IIPrimepair(2,4);
.....................
bind(&IIPrimemap::insert,primemapvec,v);
but the complier tolde me that :
 cannot resolve overloaded function `insert' based on conversion
   to type `unsigned int'
can anyone with kindness tell me how to solve it?



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

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