This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Re: abstract base classes & MI
- To: ckerr at enterprise dot nssl dot noaa dot gov
- Subject: Re: abstract base classes & MI
- From: "Martin v. Loewis" <martin at mira dot isdn dot cs dot tu-berlin dot de>
- Date: Sat, 20 Feb 1999 00:08:09 +0100
- CC: egcs at egcs dot cygnus dot com, egcs-bugs at egcs dot cygnus dot com
- References: <19990219160356.A18159@osserver1.nssl.noaa.gov>
> I don't see the ambiguity. Does egcs really think I want to invoke
> the pure method? :)
Yes. Pureness doesn't matter in name lookup. If you want to remove the
ambituity, you can call the method for the A_impl base object:
((A_impl*)this)->foo ( );
Regards,
Martin