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: Paul Walmsley <email@hidden>
- Date: Sat, 29 Oct 2005 20:13:29 +0100
David Fang wrote:
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;
typedef is also your friend here to help preserve sanity:
typedef typename std::map<E,T*>::iterator map_iterator;
...
map_iterator iter=m.begin();
_______________________________________________
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