On Wednesday 12 February 2003 09:11 pm, Lin Xu wrote:
> Hm...
> - Function<void (A::*)(),&A::Setz> if the compiler supports PTS;
> - If not, then the user would have to type in something like:
> Function0<void,A,&A::Setz>.
>
> 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.

        Doug
_______________________________________________
Unsubscribe & other changes: http://lists.boost.org/mailman/listinfo.cgi/boost

Reply via email to