This is a discussion on Query: are typedef templates supported in C++. and on VAC 6? - Aix ; I'm trying to use the 'typedef templates' idiom, mentioned in Alexandrescu's work on templates. Here's a Dr Dobbs article from 2002 that says they are a proposed C++ standard: http://www.ddj.com/cpp/184403850 My compiler (Visual Age C 6.0) rejects them. Are they ...
I'm trying to use the 'typedef templates' idiom, mentioned in
Alexandrescu's work on templates. Here's a Dr Dobbs article from 2002
that says they are a proposed C++ standard:
http://www.ddj.com/cpp/184403850
My compiler (Visual Age C 6.0) rejects them. Are they supported? Were
they ever introduced into the language standard?
Here is an example:
templateclass X { /* ... */ };
templatetypedef X Xi;
XiDdi; // equivalent to X
The compiler flags the second line with an error: "A typedef
declaration must not be a template."
(Please reply to this group.)