Re: std::map<>::iterator in Xcode 2.1
Re: std::map<>::iterator in Xcode 2.1
- Subject: Re: std::map<>::iterator in Xcode 2.1
- From: David Fang <email@hidden>
- Date: Sat, 29 Oct 2005 03:06:13 -0400 (EDT)
Hi,
In the context in which your declaration appears,
map<...>::iterator is a "(template)-dependent name" in which case, you
need to prefix the declaration with the keyword 'typename'.
> > std::map<E, T*>::iterator iter;
typename std::map::<E,T*>::iterator iter;
The other option is to try -fpermissive to CFLAGS to allow the old-style
declaration. HTH.
David Fang
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden