• 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
warnings
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Follow-Ups:
    • Re: warnings
      • From: Eric Albert <email@hidden>
    • Re: warnings
      • From: Andy Wiese <email@hidden>
  • Prev by Date: Re: Incorrect warning
  • Next by Date: Re: warnings
  • Previous by thread: Re: XCode died?!
  • Next by thread: Re: warnings
  • Index(es):
    • Date
    • Thread