This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: egcs support for local classes as template arguments
- To: egcs at cygnus dot com
- Subject: Re: egcs support for local classes as template arguments
- From: Alexandre Oliva <oliva at dcc dot unicamp dot br>
- Date: 17 Dec 1997 17:57:25 -0200
- References: <9712171843.AA08338@brigantine.CS.Arizona.EDU>
- Reply-To: egcs at cygnus dot com
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