$include_dir="/home/hyper-archives/boost-users/include"; include("$include_dir/msg-header.inc") ?>
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