This is the mail archive of the gcc-help@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Deriving from templated classes


Hi,

On Friday 16 November 2007 16:31:11 John (Eljay) Love-Jensen wrote:
> >This seems strange to me, because i think "bar" and "foo" should be within
> > the namespace of "class Bar".
>
> Yep, I'd think so too.  But that's not what the C++ standard says.  :-(
>
> > The code compiles if i substitute "bar++" with "Foo<A>::bar++" and "foo =
> > 1" with "Foo<A>::foo = 1".
>
> That's what the standards says you need to do.

Thank you for clarifying this.

Best regards,
  Lothar

PS: I was just pointed to http://gcc.gnu.org/onlinedocs/gcc/Name-lookup.html, 
which exactly describes my problem :-/ Sorry for the noise.

Attachment: signature.asc
Description: This is a digitally signed message part.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]