This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: Microsoft Specific C++ keyword "__super"
On Wed, Aug 25, 2004 at 06:09:28PM -0400, Phil Edwards wrote:
> On Wed, Aug 25, 2004 at 07:14:53PM +0100, Richard E Collins wrote:
> >
> > I'll have a think, I may resort to a macro plan I had before I found the
> > '__super' keyword. I do think its an omission of the C++ spec.
>
> You may or may not know that it was proposed and rejected. They were
> reluctant to use up any more keywords, even from the implementation
> namespace, when the same result can be had with a little more coding:
>
> struct Derived1
> : public Some_Complicated_Base_Probably_Involving_Templates
> {
> typedef Some_Complicated_Base_Probably_Involving_Templates parent;
> ....
> };
This works for single inheritance; there does not seem to be a way to
duplicate the functionality of __super in the MI case.