
28 Jul
2008
28 Jul
'08
7:44 p.m.
On Mon, Jul 28, 2008 at 8:35 AM, John Maddock <john@johnmaddock.co.uk> wrote:
In which case, anyone object to a remove_member_pointer trait that transforms:
int (foo::*) --> int int (foo::*)(double) --> int (double)
etc.
It's also tempting to add a "member_object" trait at the same time that transforms:
int (foo::*) --> foo int (foo::*)(double) --> foo
thoughts?
I think I've had a need for both of these before, and IIRC in both cases I used the FunctionTypes library to get the answer. Metafunctions that provide the answers directly would be nice, but I'm not sure whether they would fit better in TypeTraits or FunctionTypes. Stjepan