cerr and NULL terminates program + string::find() weird results
Benjamin Kosnik
bkoz@redhat.com
Wed Oct 16 18:33:00 GMT 2002
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
More information about the Libstdc++
mailing list