typedef templates

Harmon Nine harmon.nine@gmail.com
Sat Oct 18 01:59:00 GMT 2008


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;



More information about the Gcc-help mailing list