[Bug libstdc++/66145] [5/6/7 Regression] std::ios_base::failure objects thrown from libstdc++.so use old ABI
redi at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Tue Jul 12 11:08:00 GMT 2016
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66145
--- Comment #16 from Jonathan Wakely <redi at gcc dot gnu.org> ---
(In reply to Boris Kolpackov from comment #15)
> I am interested to hear what is your recommendation to do instead, call
> good()
> after every IO operation?
The normal way that iostreams are designed to be used:
if (is >> x >> y >> z)
or
if (os << a << b << c)
Not explicitly calling good() after every operation, that's dumb too.
More information about the Gcc-bugs
mailing list