This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Re: typedef scoping for templates
- To: egcs-bugs at cygnus dot com, garloff at hft dot e-technik dot uni-dortmund dot de
- Subject: Re: typedef scoping for templates
- From: mrs at wrs dot com (Mike Stump)
- Date: Fri, 7 Aug 1998 11:31:08 -0700
> Date: Fri, 7 Aug 1998 17:31:41 +0200
> From: Kurt Garloff <garloff@hft.e-technik.uni-dortmund.de>
> If I use a typedef inside a templated class and later want to refer to the
> declared name in a templated function with the class as (possible) template
> argument, the compiler issues a parse error.
Use ``typename'' before uses of template argument dependent type
names. See the FAQs, or egcs website, as any good book on C++.