26 May
2010
26 May
'10
2:43 p.m.
I have a problem compiling this: class A { public: void method(); void methodwiththrow() throw (char*); }; std::vector lst; // compiles OK. std::for_each (lst.begin(), lst.end(), boost::lambda::bind(&A::method, boost::lambda::_1)); // compile fails. std::for_each (lst.begin(), lst.end(), boost::lambda::bind(&A::methodwiththrow, boost::lambda::_1)); What might be the reason?