• 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: Templates, STL, const_iterator supported?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Templates, STL, const_iterator supported?


  • Subject: Re: Templates, STL, const_iterator supported?
  • From: Clark Cox <email@hidden>
  • Date: Thu, 19 Jan 2006 11:20:00 -0500

2006/1/19, Scott Squires <email@hidden>:
> Are there restrictions with xcode/gcc using Templates, STL, and
> const_iterator?
>
> I see a couple of limits on p44 of the xcode from CodeWarrior docs but I'm
> having some code choking the compiler on things like T::const_iterator it;
> error: Expected ; before it

Have you tried:

typename T::const_iterator it;

>
> I running into a few other similar hits with templates.
>
> This had been fine in CodeWarrior and wondering if standards have changed or
> if there are workarounds suggested.

Standards have changed. (people moving from GCC 3 to GCC 4 run into
the same problem all the time)


--
Clark S. Cox III
email@hidden
My CV/Resume:
http://homepage.mac.com/clarkcox3/files/Resume.pdf
http://homepage.mac.com/clarkcox3/files/Resume.html
 _______________________________________________
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: Templates, STL, const_iterator supported?
      • From: Scott Squires <email@hidden>
References: 
 >Templates, STL, const_iterator supported? (From: Scott Squires <email@hidden>)

  • Prev by Date: Re: Info.plist preprocessing
  • Next by Date: Re: Changing default path for svn
  • Previous by thread: Templates, STL, const_iterator supported?
  • Next by thread: Re: Templates, STL, const_iterator supported?
  • Index(es):
    • Date
    • Thread