This is the mail archive of the
egcs@egcs.cygnus.com
mailing list for the EGCS project. See the EGCS
home page for more information.
[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index] [Subject Index] [Author Index] [Thread Index]
Re: [Q] bug with -pedantic option ???
- To: m.cvjetko-no-spam@rt.e-technik.uni-erlangen.de
- Subject: Re: [Q] bug with -pedantic option ???
- From: Dietmar.Kuehl@dvg.de
- Date: Fri, 5 Mar 1999 09:41:11 +0100
- cc: Egcs@cygnus.com, Comp.Lang.C++@rt.e-technik.uni-erlangen.de
- Delivered-To: listarch-egcs@egcs.cygnus.com
- Delivered-To: mailing list egcs@egcs.cygnus.com
- Mailing-List: contact egcs-help@egcs.cygnus.com; run by ezmlm
- Sender: owner-egcs@egcs.cygnus.com
Hi,
In templates you need to use 'typename' to access a subtype
of a dependent type. That is the definition of 'f()' should
look like this:
template <class Type>
void
X<Type >::f()
{
typename list<Type>::const_iterator it1;
}
BTW, you don't need a semicolon after a function definition.