This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: typedef scoping for templates


> 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++.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]