warnings
warnings
- Subject: warnings
- From: Steve Mills <email@hidden>
- Date: Tue, 16 Nov 2004 11:05:27 -0600
Still working on moving projects from CW to Xcode. What exactly does
this one mean and how can it be fixed?
warning: `std::vector<T, std::allocator<_CharT> >::iterator' is
implicitly a typename
warning: implicit typename is deprecated, please see the documentation
for details
It appears here at the declaration of the iterator "it" below:
template <class T> class fVectorInterface : public fDataInterface
{
protected:
typedef vector<T> MyVectorType;
MyVectorType* iVectorOPtr; // not owned by this object
public:
<snip>
virtual void MoveCell(long fromIndex, long toIndex)
{
Dogbert_Assert(iVectorOPtr != nil);
MyVectorType::iterator it = iVectorOPtr->begin() + fromIndex;
T temp = *it;
iVectorOPtr->erase(it);
if(toIndex > fromIndex)
toIndex--;
it = iVectorOPtr->begin() + toIndex;
iVectorOPtr->insert(it, temp);
}
};
You can see that I tried typedef'ing it, which didn't help. I've also
tried putting "typename" in there to no avail.
Another warning was about how the size of long double might change in
the future. Can anyone elaborate on that? I understand how changing the
size would break code that reads/writes it and expects it to be a
certain size, but are there other implications?
Steve Mills
Drummer, Mac geek
http://sjmills5.home.mchsi.com/
_______________________________________________
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