Boost logo

Boost Users :

From: Bernabe Cantos (xphere81_at_[hidden])
Date: 2007-05-08 07:49:36


Hello, I'm using BOOST libraries in my developments.

I need a trait returning the class type from a pointer to member type.

An example:

member_of<int(A::*)(void)>::type // this equals to 'A'
member_of<void(B::*)(int) const>::type // this equals to 'B const'
member_of<void(void)>::type // this equals to an undefined struct

I don't know if the functionality I need exists in BOOST. I hope so.
If not, should it be difficult to provide?
Maybe doing some modifications to is_member_function_pointer.

Thanks in advance


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