Boost logo

Boost :

From: Stjepan Rajko (stipe_at_[hidden])
Date: 2008-07-28 15:44:41


On Mon, Jul 28, 2008 at 8:35 AM, John Maddock <john_at_[hidden]> 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


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