You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Thanks, I've been aware of the problem. I see 2 possible alternatives: (i) not signalling an output buffer flush error at all from the destructor, or (ii) exit or std::terminate. I just haven't decided which one would be better, they both seem quite bad. I'm inclining towards (i) though, for the reasons explained here: http://stackoverflow.com/a/130123/717706
Hi,
when i compile this library with a recent gcc (6.2.1) i get the following warning:
zstr.hpp: In destructor ‘virtual zstr::ostreambuf::~ostreambuf( ’:
zstr.hpp:271:79: warning: throw will always call terminate() [-Wterminate]
if (sync() != 0) throw Exception("~ostreambuf(): error in sink stream");
Cheers,
Georg
The text was updated successfully, but these errors were encountered: