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]

ostream::put doesn't check good()


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


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