This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
solution found for subclass method pointer problem
- To: gcc at gcc dot gnu dot org, gcc-help at gcc dot gnu dot org
- Subject: solution found for subclass method pointer problem
- From: Brent Phillips <brent at lyrastudios dot com>
- Date: Wed, 22 Aug 2001 22:36:32 -0700
Hi,
Thanks to a suggestion from Doug Landauer, I found the heart of the
problem, which is that
&foo::bar is a pointer-to-member, but
&(foo::bar) is not.
Evidently this is from section 5.3.1 of the standard.
I also had to remove the use of macro, which shouldn't have made a
difference, but did...but I won't argue with what works. :0
Brent