
-----Original Message----- From: boost-users-bounces@lists.boost.org [mailto:boost-users- bounces@lists.boost.org] On Behalf Of Alexander Shyrokov Sent: Wednesday, September 13, 2006 1:40 PM To: boost-users@lists.boost.org 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.