Re: template typedef

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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


[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux