This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Re: c++/10649: is_pointer<T> reports pointer to member function is not a pointer
- From: Robert Schwartz <robertallanschwartz at yahoo dot com>
- To: giovannibajo at libero dot it, gcc-bugs at gcc dot gnu dot org, gcc-prs at gcc dot gnu dot org, nobody at gcc dot gnu dot org, gcc-gnats at gcc dot gnu dot org
- Date: Wed, 7 May 2003 16:07:39 -0700 (PDT)
- Subject: Re: c++/10649: is_pointer<T> reports pointer to member function is not a pointer
- Reply-to: notbob at tessellation dot com
--- giovannibajo@libero.it wrote:
> Synopsis: is_pointer<T> reports pointer to member function is not a pointer
>
> State-Changed-From-To: open->closed
> State-Changed-By: bajo
> State-Changed-When: Wed May 7 00:40:10 2003
> State-Changed-Why:
> No, a member function pointer cannot match "T*". What would
> be T, in fact?
is_pointer<int foo::*>::value (i.e. pointer to member variable) evaluates to true.
If I remove the * from "int foo::*", then I get "int foo::".
I know this isn't a valid C++ type, but a pointer to a member variable is still a pointer, no?
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?
> http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=10649
__________________________________
Do you Yahoo!?
The New Yahoo! Search - Faster. Easier. Bingo.
http://search.yahoo.com