Re: Deriving from templated classes

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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 of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux