Boost logo

Boost :

From: Douglas Paul Gregor (gregod_at_[hidden])
Date: 2003-12-26 10:38:43


On Fri, 26 Dec 2003, Roman Yakovenko wrote:
> Hi. Is there is any technical reason why function_traits doesn't support
> class member function?

No technical reason. function_traits gives information about a function
types (but not function pointers or member function pointers). You can get
member function traits with:

template<typename> struct member_function_traits;

template<typename F, typename Class>
  struct member_function_traits<F Class::*> : boost::function_traits<F>
  {};

        Doug


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk