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
- Subject: Re: typedef scoping for templates
- From: Kurt Garloff <garloff at hft dot e-technik dot uni-dortmund dot de>
- Date: Mon, 10 Aug 1998 18:14:32 +0200
- References: <199808071831.LAA27688@kankakee.wrs.com>
On Fri, Aug 07, 1998 at 11:31:08AM -0700, Mike Stump wrote:
> > 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++.
Correct. Thanks!
--
+--------------------------------------------------------------+
| cand.phys. Kurt Garloff C1-O4-101 (Chemiegeb"aude) |
| garloff@hft.e-technik.uni-dortmund.de |
+--------------------------------------------------------------+