mirror of
https://github.com/fmtlib/fmt.git
synced 2024-12-26 18:28:20 +00:00
Enable stream exceptions (#581)
This commit is contained in:
parent
933a33a794
commit
2c077dd442
@ -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());
|
||||
|
Loading…
Reference in New Issue
Block a user