This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Re: template typedef
- From: Ingo Krabbe <ikrabbe dot ask at web dot de>
- To: gcc-help at gcc dot gnu dot org
- Cc: Vincent Torri <Vincent dot Torri at iecn dot u-nancy dot fr>
- Date: Fri, 16 Dec 2005 12:13:24 +0100
- Subject: Re: template typedef
- References: <Pine.LNX.4.51.0512161137100.10721@cartan.iecn.u-nancy.fr>
Am Freitag, 16. Dezember 2005 11:38 schrieb Vincent Torri:
> hey,
>
> does gcc 3.4 (or 4.*) support template typedef, like that:
>
> template<class T>
> typedef std::map<std::string, T> Registry;
Is this iso C ?
>
> ? (or any other syntax)
>
> thank you
>
> Vincent Torri
I feel you should better overload
template <class T> class Registry public std::map<std::string, T> { }; (or
similar I'm not that firm with templates anymore)