Re: Templates, STL, const_iterator supported?
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