
4 Mar
2009
4 Mar
'09
7:49 p.m.
Kevin Ludwig:
Hi,
I've recently been making more use of boost::bind, and I coded the following, which I thought would work:
class A { public: void reset () {} }; typedef std::map
map_type; map_type m; std::for_each (m.begin(), m.end(), boost::bind(&A::reset, boost::bind(&map_type::value_type::second, _1))); but fails to compile.
This compiles for me with MSVC 7.1. What compiler and Boost version do you use? What errors do you get?