Don't die on Windows.

This commit is contained in:
Victor Zverovich
2014-05-05 07:11:54 -07:00
parent 3555341ab4
commit 5434b0282c
2 changed files with 33 additions and 20 deletions
+2 -1
View File
@@ -188,7 +188,8 @@ class BufferedFile {
// Methods that are not declared with FMT_NOEXCEPT(true) may throw
// fmt::SystemError in case of failure. Note that some errors such as
// closing the file multiple times will cause a crash on Windows rather
// than an exception.
// than an exception. You can get standard behavior by overriding the
// invalid parameter handler with _set_invalid_parameter_handler.
class File {
private:
int fd_; // File descriptor.