consider the following piece of code, compiled with g++ 3.4 and
stlport 5.1 on Linux 64 bit (problem persists in 32 bit too)
std::stringstre am ss;
int ii = 123;
ss << "test1";
std::cout<<ss.s tr()<<std::endl ;
ss << ii << "test2";
std::cout << ss.str()<<std:: endl;
The output I'm getting is quite strange:
test1
test1test2
It like 'ii' is not printed. If I remove line #4, then all is fine and
I get "test1123te st2" also if to replace 'ii' in line 5 with some
string, like "test22", you'll get last line "test1test22tes t2" as
expected.
drives me crazy. any idea what it can be?
Thanks,
Dmitry