Boost logo

Boost :

From: David Abrahams (david.abrahams_at_[hidden])
Date: 2001-12-07 18:08:39


Okay, but if I don't have partial specialization, I'm out of luck.
This wouldn't be such a problem, except that:

1. Implementing the function pointer detection myself requires a huge
overloaded family of function prototypes (see
type_traits/function_traits.hpp).

2. A function type is nearly useless by itself! All I can do with it
(AFAICT) is add the pointer (or reference, if it's not a member function)
back into it.

And, to cap it all... it doesn't look like I can detect a member function
pointer. Am I wrong? It looks like is_function doesn't return true for a
member function.

-Dave
----- Original Message -----
From: "Howard Hinnant" <hinnant_at_[hidden]>
To: <boost_at_[hidden]>
Sent: Friday, December 07, 2001 5:09 PM
Subject: Re: [boost] type_traits question

> On Friday, December 7, 2001, at 03:55 PM, David Abrahams wrote:
>
> > How do I name a function type (as opposed to a reference or pointer to
> > function)?
> > If I can't name a function type, can I produce one?
>
> You can use remove_pointer on a function pointer.
>
> -Howard
>
>
> Info: http://www.boost.org Send unsubscribe requests to:
<mailto:boost-unsubscribe_at_[hidden]>
>
> Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/
>
>


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