From: Douglas Gregor (gregod_at_[hidden])
Date: 2003-02-13 00:05:10
On Wednesday 12 February 2003 09:11 pm, Lin Xu wrote:
> - Function<void (A::*)(),&A::Setz> if the compiler supports PTS;
> - If not, then the user would have to type in something like:
> Looks good. Another (slightly offtopic) thing. I attempted to use
> function_traits with a member function type. GCC spat out errors, and
> looking at the source code I don't think it *should* work anyway. Correct?
> If so, shouldn't there be an additional set of specializations for
> function_traits that specialize for member function pointers?
Right. function_traits was intended to work with function types (not function
pointers, even), because that's what boost::function needed, but I'd be happy
to see it extended to support member function pointers.
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk