Re: warnings
Re: warnings
- Subject: Re: warnings
- From: Andy Wiese <email@hidden>
- Date: Tue, 16 Nov 2004 12:24:24 -0600
On Nov 16, 2004, at 12:01 PM, Steve Mills wrote:
On Nov 16, 2004, at 11:32, Andy Wiese wrote:
I am also moving a c++ project from codewarrior to Xcode, and I've
seen this error too. Everytime it has been the omission of a
"typename" qualifier. Are you sure you haven't just missed the
getting it in the right spot? I would expect it to require:
typename MyVectorType::iterator.
Oh, it wants it THERE. OK, that worked. Thanks!
Maybe the real cpp gurus can set me straight if I don't have this just
right. I believe typename is required when code in a template declares
use of a type that is defined inside another template. So if your class
fVectorInterface was not itself a template, you wouldn't need to use
the typename qualifier. I believe this is because without it, the
compiler can't tell if you're refering to a type or a member of the
templated class. I've reread both Stroustrup and Meyers on the subject
enough times that I should have it down by now. I'm personally hoping
that working with a more strict compiler will whip me into shape.
_______________________________________________
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