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]
Other format: [Raw text]

Re: Template and typedef


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


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