This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Re: template typedef
- From: John Love-Jensen <eljay at adobe dot com>
- To: Vincent Torri <Vincent dot Torri at iecn dot u-nancy dot fr>, MSX to GCC <gcc-help at gcc dot gnu dot org>
- Date: Fri, 16 Dec 2005 06:54:28 -0600
- Subject: Re: template typedef
Hi Vincent,
Yes, GCC 3.x and 4.x support template typedef. But not in the syntax of
your example, rather it is support in a C++ (ISO 14882) compliant syntax.
For example:
template <typename T>
struct Foo
{
typedef std::map<std::string, T> Registry;
};
HTH,
--Eljay