std::map<>::iterator in Xcode 2.1
std::map<>::iterator in Xcode 2.1
- Subject: std::map<>::iterator in Xcode 2.1
- From: Red Marble Games <email@hidden>
- Date: Fri, 28 Oct 2005 17:53:03 -0400
After an upgrade to 2.1, some of my code stopped working and I can't tell why. In a header file in which I defined a templated class as follows: template<class E, class T> class CDataStore{ ... etc., which includes a private member declared as std::map<E, T*> m_data_list. So far so good. But the same header file defines a method of the CDataStore class called release(), and not surprisingly the release() method starts out with:
std::map<E, T*>::iterator iter;
XCode doesn't seem to recognize the iterator declaration; the error reads "error: expected ';' before 'iter'". This code compiled fine in Xcode 1.5. The file #includes <map>, and the declaration of the std::map is fine; it just chokes on the iterator declaration. Any ideas?
Thanks,
|
_______________________________________________
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