This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug libstdc++/29035] Initialisation of std::ostringstream does not work correctly
- From: "eric_jrdn2 at yahoo dot fr" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 12 Sep 2006 15:32:30 -0000
- Subject: [Bug libstdc++/29035] Initialisation of std::ostringstream does not work correctly
- References: <bug-29035-13234@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #3 from eric_jrdn2 at yahoo dot fr 2006-09-12 15:32 -------
I tried this :
#include <iostream>
#include <complex>
#include <iomanip>
using namespace std;
int main(){
ostringstream ostr;
ostr.str("azerty");
cout<<ostr.tellp()<<endl;
ostr<<"123";
cout<<ostr.str()<<endl;
cout<<ostr.tellp()<<endl;
}
output is :
0
123rty
3
Where should I look at?
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=29035