This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug libstdc++/29035] Initialisation of std::ostringstream does not work correctly



------- 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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]