ostream::put doesn't check good()

Niall Smart njs3@doc.ic.ac.uk
Thu Jun 4 09:21:00 GMT 1998


Hi,

Can you please modify ostream::out to check good() before calling
it's streambuf?  Something like this:

    ostream& put(char c) { if (good()) _strbuf->sputc(c); return *this; }


Niall



More information about the Gcc-bugs mailing list