• 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: Steve Baxter <email@hidden>
  • Date: Thu, 19 Jan 2006 17:48:54 +0000

You don't need the typename before ioContainer.push_back() - ioContainer is not a type!

This "improvement" on the C++ standard is a pain in the arse frankly...

On 19 Jan 2006, at 16:49, Scott Squires wrote:

Thanks, that helped a lot.

Are some of these GCC issues noted somewhere or is there a recommended
current standards guide?


Here's a another snag that may be obvious to someone. (It's been awhile for
me)
error: expected initializer before '.' token


template<class Container_>
void ReadContainer(MyStreamReader& ioReader, MyStreamClass& inStream,
Container_ &ioContainer)
{
long numObjects;


inStream >> numObjects;
for (long i = 0; i < numObjects; i++)
{
typename
ioContainer.push_back(dynamic_cast<Container_::value_type> (ioReader.ReadAndC
onstructNextObject()));
}
}



_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
40improvision.com


This email sent to email@hidden

Steve Baxter Software Development Manager Improvision +44-2476-692229

_______________________________________________
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: 
 >Re: Templates, STL, const_iterator supported? (From: Scott Squires <email@hidden>)

  • Prev by Date: Re: GCC for i386 allows 'invalid suffix "f" on integer constant'
  • Next by Date: Relaxing gcc type comparison ?
  • Previous by thread: Re: Templates, STL, const_iterator supported?
  • Next by thread: Re: Templates, STL, const_iterator supported?
  • Index(es):
    • Date
    • Thread