Comments (2)
I decided to remove the throw
and hide the error, mirroring the behaviour in std::basic_filebuf::~basic_filebuf()
.
from zstr.
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
from zstr.
Related Issues (20)
- How can decompress char*/std::string data HOT 1
- Should ifstream be opened in binary mode? HOT 4
- -Wdefaulted-function-deleted warning on Clang 8
- what language are the released zip/tgz files in ? HOT 5
- Invalid string resizing length bug HOT 3
- gcount, tellg, seekg functions HOT 3
- CMakeLists info
- Allow zstr::ofstream to work in plain non-compressed mode
- zlib header detection is too restrictive. HOT 3
- Default Constructible fstream
- Merge projects?
- the proper way of getting decompressed file size HOT 5
- crashing in strict_fstream::detail::static_method_holder::check_open HOT 10
- can't compile in clang HOT 3
- windows miniz example HOT 1
- Request: constants instead of magic numbers for windowBits parameter HOT 1
- Incompatible with GCC 4.8.2 HOT 5
- Error with defined(__APPLE__) && !_GNU_SOURCE HOT 6
- call to implicitly-deleted copy constructor of 'zstr::ifstream' HOT 3
- [FreeBSD] strict_fstream.hpp:77:26: error: invalid conversion from 'int' to 'char*' HOT 6
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from zstr.