Skip to content

Commit

Permalink
Enable stream exceptions (#581)
Browse files Browse the repository at this point in the history
  • Loading branch information
vitaut committed Oct 14, 2017
1 parent 933a33a commit 2c077dd
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions fmt/ostream.h
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,7 @@ void format_arg(BasicFormatter<Char, ArgFormatter_> &f,

internal::FormatBuf<Char> format_buf(buffer);
std::basic_ostream<Char> output(&format_buf);
output.exceptions(std::ios_base::failbit | std::ios_base::badbit);
output << value;

BasicStringRef<Char> str(&buffer[0], buffer.size());
Expand Down

0 comments on commit 2c077dd

Please sign in to comment.