egcs support for local classes as template arguments
Alexandre Oliva
oliva@dcc.unicamp.br
Wed Dec 17 12:28:00 GMT 1997
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
More information about the Gcc
mailing list