From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 7075 invoked by alias); 8 May 2003 00:26:00 -0000 Mailing-List: contact gcc-prs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-prs-owner@gcc.gnu.org Received: (qmail 7059 invoked by uid 71); 8 May 2003 00:26:00 -0000 Date: Thu, 08 May 2003 00:26:00 -0000 Message-ID: <20030508002600.7058.qmail@sources.redhat.com> To: nobody@gcc.gnu.org Cc: gcc-prs@gcc.gnu.org, From: "Giovanni Bajo" Subject: Re: c++/10649: is_pointer reports pointer to member function is not a pointer Reply-To: "Giovanni Bajo" X-SW-Source: 2003-05/txt/msg00522.txt.bz2 List-Id: The following reply was made to PR c++/10649; it has been noted by GNATS. From: "Giovanni Bajo" To: Cc: , Subject: Re: c++/10649: is_pointer reports pointer to member function is not a pointer Date: Thu, 8 May 2003 02:17:26 +0200 Robert Schwartz wrote: >>> is_pointer::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