From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 28797 invoked by alias); 7 May 2003 23:56: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 28783 invoked by uid 71); 7 May 2003 23:56:00 -0000 Date: Wed, 07 May 2003 23:56:00 -0000 Message-ID: <20030507235600.28782.qmail@sources.redhat.com> To: nobody@gcc.gnu.org Cc: gcc-prs@gcc.gnu.org, From: Phil Edwards Subject: Re: c++/10649: is_pointer reports pointer to member function is not a pointer Reply-To: Phil Edwards X-SW-Source: 2003-05/txt/msg00519.txt.bz2 List-Id: The following reply was made to PR c++/10649; it has been noted by GNATS. From: Phil Edwards To: Giovanni Bajo Cc: notbob@tessellation.com, gcc-bugs@gcc.gnu.org, gcc-gnats@gcc.gnu.org Subject: Re: c++/10649: is_pointer reports pointer to member function is not a pointer Date: Wed, 7 May 2003 19:55:33 -0400 On Thu, May 08, 2003 at 01:34:52AM +0200, Giovanni Bajo wrote: > Robert Schwartz 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