Bug in strstream ?

Sven Eschenberg eschenb@cs.uni-frankfurt.de
Wed Apr 11 03:04:00 GMT 2001


Hello Alexandre,

Wednesday, April 11, 2001, 6:10:29 AM, you wrote:

AO> On Apr 10, 2001, Sven Eschenberg <eschenb@cs.uni-frankfurt.de> wrote:

>>   istr=dummy.str();
>>   cout << dummy.str() << endl;

AO> Note that the result of str() is not guaranteed to be NULL-terminated,
AO> unless you explicitly write a std::eos to the stream.


Okay, thanx, I guess that explains it all :)

-- 
Regards,
 Sven                            mailto:eschenb@cs.uni-frankfurt.de




More information about the Gcc-bugs mailing list