22 Mar
2005
22 Mar
'05
8:46 p.m.
David Morrison wrote:
I found that if I created a class in analogy with "apply" called, say, "apply_mem_fn" like this:
template<class R> struct apply_mem_fn { typedef R result_type;
template
result_type operator()(F & f, A1 & a1, A2 & a2, A3 & a3) const { return ((a1).*(f))(a2, a3);
Change this to boost::mem_fn( f )( a1, a2, a3 ) and you'll be there.
}
};