• 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: Chris Jefferson <email@hidden>
  • Date: Thu, 19 Jan 2006 17:10:19 +0000

On 1/19/06, Scott Squires <email@hidden> wrote:
> 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
>
try:
typename T::const_iterator it;

This code was often accepted by older compilers, but any modern (and
more to the point, standards-correct compiler) requires a "typename"
wherever you use a type and it is impossible to tell if you are
refering to a type or a variable.

Chris
 _______________________________________________
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

References: 
 >Templates, STL, const_iterator supported? (From: Scott Squires <email@hidden>)

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