
1 Sep
2009
1 Sep
'09
2:57 p.m.
AMDG Lowell McLinskey wrote:
I am having trouble understanding the return type of mem_fn. Is it possible to create a vector of this type, analogous to how one can create a vector of type mem_fun_t to hold the return values of mem_fun()?
The return type of boost::mem_fn is unspecified. You have to use either boost::function or (on compilers with a native implementation) BOOST_TYPEOF. In Christ, Steven Watanabe