Templates declared in class scope

Alexandre Oliva oliva@dcc.unicamp.br
Wed Sep 9 01:24:00 GMT 1998


Reid M Pinchback <reidmp@mit.edu> writes:

>   namespace foo {
>     template <class T> struct A {};
>     struct B {
>       template <class T> struct A {};
>     };
>   }

> but isn't template A in namespace scope while the member 
> template B::A is in class scope?
 
Yup; egcs 1.1 is wrong.

-- 
Alexandre Oliva
mailto:oliva@dcc.unicamp.br mailto:aoliva@acm.org
http://www.dcc.unicamp.br/~oliva
Universidade Estadual de Campinas, SP, Brasil




More information about the Gcc mailing list