Boost logo

Boost Users :

From: Nat Goodspeed (ngoodspeed_at_[hidden])
Date: 2006-09-13 14:47:47


> -----Original Message-----
> From: boost-users-bounces_at_[hidden] [mailto:boost-users-
> bounces_at_[hidden]] On Behalf Of Alexander Shyrokov
> Sent: Wednesday, September 13, 2006 1:40 PM
> To: boost-users_at_[hidden]
> Subject: [Boost-users] bind, and member function with a parameter
>
> void animation::advance(int ms);
> std::vector<animation> anims;
> std::for_each(anims.begin(), anims.end(),
> boost::bind(&animation::advance, _1, ms));
>
> I am using boost::lambda:: before _1. I get an error error C2825:
> 'F::result_type': cannot form a qualified name

[Nat] boost::bind defines _1 (etc.) placeholders that you must use with
boost::bind(). boost::lambda defines _1 (etc.) placeholders that you
must use with boost::lambda::bind(). Sadly, the two sets of placeholders
are incompatible. Might that be your problem? Try explicitly qualifying
your placeholder:

... boost::bind::_1 ...

If that works, then adjust your using clauses appropriately.


Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net