This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
typedef templates
- From: "Harmon Nine" <harmon dot nine at gmail dot com>
- To: gcc-help at gcc dot gnu dot org
- Date: Fri, 17 Oct 2008 20:59:07 -0500
- Subject: typedef templates
Hello.
I've been combing the web to see if/when C++ typedef templates will be
supported by gcc (example below), without success. Does anyone know
if they are supported in gcc 4.3.2 and, if not, what version is slated
to support them?
Thanks.
-- Harmon
Example:
template< typename X, typename Y >
class foo {
};
// typedef template
template< typename X >
typedef foo< X, int > bar;
bar< double > var; // same as foo< double, int > var;