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: "Giovanni Bajo" <giovannibajo at libero dot it>
- To: <notbob at tessellation dot com>
- Cc: <gcc-gnats at gcc dot gnu dot org>,<gcc-bugs at gcc dot gnu dot org>
- Date: Thu, 8 May 2003 02:17:26 +0200
- Subject: Re: c++/10649: is_pointer<T> reports pointer to member function is not a pointer
- References: <20030507235117.10313.qmail@web20308.mail.yahoo.com>
Robert Schwartz <robertallanschwartz@yahoo.com> wrote:
>>> is_pointer<int foo::*>::value (i.e. pointer to member variable)
evaluates
>>> to true.
>>[bla bla bla]
> I appreciate what you are saying. I'm still confused about why the
template
> says a pointer to a member variable IS a pointer, but a pointer to a
member
> function IS NOT a pointer. This seems inconsistent to me.
Sorry, I had missed that very sentence.
It's a bug in the (now discontinued) 3.2 branch, and it's fixed in 3.3 and
3.4 (CVS 20030503). If you run your template there, you will see that both
pointer to member functions and pointer to member variables evalutate to
*false*, which is the expected consistent behaviour.
Giovanni Bajo