• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
std::map<>::iterator in Xcode 2.1
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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,

Mark Batten

Red Marble Games

http://www.redmarblegames.com



 _______________________________________________
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

  • Follow-Ups:
    • Re: std::map<>::iterator in Xcode 2.1
      • From: Dmitry Markman <email@hidden>
  • Prev by Date: Re: Memory debuggers for MacOS 10.3.9
  • Next by Date: Re: std::map<>::iterator in Xcode 2.1
  • Previous by thread: Re: mkdir in PhaseScriptExecution
  • Next by thread: Re: std::map<>::iterator in Xcode 2.1
  • Index(es):
    • Date
    • Thread