Boost logo

Boost Users :

Subject: Re: [Boost-users] [mem_fn] return type
From: Steven Watanabe (watanabesj_at_[hidden])
Date: 2009-09-01 10:57:57


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


Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net