A
Andy
I am using basic_stringstream for creating character set neutral
strings.
If I use it like this:
basic_stringstream<wchar_t> str1, str2;
/*1*/ str1<<"A="<<int1<<"; B="<<chr2<<"; C="<<str1<<std::endl;
...
/*2*/ str1<<"D="<<dbl1<<"E="<<flt2<<std::endl;
then after the second set of inserts, what I get is the cumulative
result of the two inserts.
Instead I want each insert to overwrite the previous insert. Any
suggestions.
Cheers,
Andy
strings.
If I use it like this:
basic_stringstream<wchar_t> str1, str2;
/*1*/ str1<<"A="<<int1<<"; B="<<chr2<<"; C="<<str1<<std::endl;
...
/*2*/ str1<<"D="<<dbl1<<"E="<<flt2<<std::endl;
then after the second set of inserts, what I get is the cumulative
result of the two inserts.
Instead I want each insert to overwrite the previous insert. Any
suggestions.
Cheers,
Andy