25 Feb
2009
25 Feb
'09
1:42 a.m.
AMDG V S P wrote:
struct A: public enable_shared_from_this<A> { static void myfunc(const A* in); };
for_each (v.begin(),v.end(), boost::mem_fn(&A::myfunc));
A::myfunc is a static member function, so mem_fn doesn't work. If you declare it as a non-static member void myfunc() const; it works. In Christ, Steven Watanabe