• 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: string::stringstream broken with gg 4.2
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: string::stringstream broken with gg 4.2


  • Subject: Re: string::stringstream broken with gg 4.2
  • From: Guillermo Ruiz <email@hidden>
  • Date: Thu, 29 Oct 2009 17:06:15 +0100

I have the same problem!

#include <iostream>
#include <sstream>

int main()
{
   std::ostringstream stream;
   int i = 5;
   stream << i;
   std::string str = stream.str();
   std::cout << str; // empty string
}


This code doesn't work with gcc 4.2 on debug mode. It works with gcc 4.0 or 4.2 on release mode.
 _______________________________________________
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: string::stringstream broken with gg 4.2
      • From: Todd Heberlein <email@hidden>
  • Prev by Date: Re: Crash in Leopard due to symbol not found __NSConcreteStackBlock
  • Next by Date: Re: string::stringstream broken with gg 4.2
  • Previous by thread: Re: string::stringstream broken with gg 4.2
  • Next by thread: Re: string::stringstream broken with gg 4.2
  • Index(es):
    • Date
    • Thread