• 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
Re: std::map<>::iterator in Xcode 2.1
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Follow-Ups:
    • Re: std::map<>::iterator in Xcode 2.1
      • From: Paul Walmsley <email@hidden>
References: 
 >Re: std::map<>::iterator in Xcode 2.1 (From: Dmitry Markman <email@hidden>)

  • Prev by Date: Re: std::map<>::iterator in Xcode 2.1
  • Next by Date: Creating Custom Project Templates
  • Previous by thread: Re: std::map<>::iterator in Xcode 2.1
  • Next by thread: Re: std::map<>::iterator in Xcode 2.1
  • Index(es):
    • Date
    • Thread