[Bug libstdc++/60883] std::ostringstream::str(const std::string&) works strangely

michal at mistrnet dot cz gcc-bugzilla@gcc.gnu.org
Fri Apr 18 12:10:00 GMT 2014


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=60883

Michal Strnad <michal at mistrnet dot cz> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |michal at mistrnet dot cz

--- Comment #2 from Michal Strnad <michal at mistrnet dot cz> ---
Comment on attachment 32630
  --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=32630
Demonstrate ostringstream::str(const string&) side effect

std::ostringstream o(std::ios_base::out |
                     std::ios_base::app);//std::ios_base::app sets append mode



More information about the Gcc-bugs mailing list