This is the mail archive of the libstdc++@gcc.gnu.org mailing list for the libstdc++ project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: cerr and NULL terminates program + string::find() weird results


This problem was discussed last year. It was determined that, on
balance, setting badbit is the most consistent way of dealing with null
pointer errors in for output (specified in other inserters, like streambuf*). 

I stand by that decision. I think it's wise.

See:
27.6.2.5.3 - basic_ostream::operator<< [lib.ostream.inserters]


-benjamin


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