This is the mail archive of the gcc@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]

Re: egcs support for local classes as template arguments


Don Waugaman writes:

> tst.cc: In function `int main(int, char **)':
> tst.cc:18: type `main(int, char **)::Test' composed from a local class is not a valid template-argument

The Nov'97 C++ DWP says that a local class cannot be used as a
template argument.  g++/egcs could do that as an extension, as I
myself find that quite useful, but you shouldn't depend on that.

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


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