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


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


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