This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: Template and typedef
- From: Gabriel Dos Reis <gdr at codesourcery dot com>
- To: Julien Allali <allali at univ-mlv dot fr>
- Cc: gcc at gcc dot gnu dot org
- Date: 14 Dec 2001 12:27:32 +0100
- Subject: Re: Template and typedef
- Organization: CodeSourcery, LLC
- References: <3C19CDB9.99B39A19@univ-mlv.fr>
Julien Allali <allali@univ-mlv.fr> writes:
[...]
| g++-3.0 say that I can't do template with typedef. So
| I take the Stroustrup and I see that the grammar
| allow this !
The sole grammar is insufficient to tell you what really is allowed or
not allowed. Standard C++ does not have template-typedefs.
However, that is conceivable as an extension in future versions of
C++. Right now, everybody wants template-typedef but nobody makes
a formal proposal as far as the syntax and semantics are concerned.
-- Gaby
CodeSourcery, LLC http://www.codesourcery.com