c++/10649: is_pointer<T> reports pointer to member function is not a pointer
Phil Edwards
phil@jaj.com
Thu May 8 00:12:00 GMT 2003
On Thu, May 08, 2003 at 01:34:52AM +0200, Giovanni Bajo wrote:
> Robert Schwartz <robertallanschwartz@yahoo.com> wrote:
>
> > If I remove the * from "int (foo::*)(void)", then I get "int
> (foo::)(void)".
> > I know this isn't a valid C++ type, but a pointer to a member function is
> > still a pointer, no?
[...]
> You can check the Type Trait library within Boost, they
> have metafunctions to check for every thing you can think of about types,
> and they work on every compiler out there (most of them can work even
> without partial specialization). It will give you an idea about how to
> implement such constructs.
Also, the cxx-reflection-branch will, eventually, implement these templates
(taken from the ISO proposal). I have a patch which does, but the new parser
won't let me do pointers-to-members like I'd planned.
Phil
--
If ye love wealth greater than liberty, the tranquility of servitude greater
than the animating contest for freedom, go home and leave us in peace. We seek
not your counsel, nor your arms. Crouch down and lick the hand that feeds you;
and may posterity forget that ye were our countrymen. - Samuel Adams
More information about the Gcc-bugs
mailing list