mirror of
https://github.com/fmtlib/fmt.git
synced 2024-11-19 11:14:41 +00:00
Don't use format_error if exceptions disabled
This commit is contained in:
parent
967e2d177d
commit
70643b2511
@ -131,7 +131,12 @@ FMT_FUNC auto write_loc(appender out, loc_value value,
|
||||
} // namespace detail
|
||||
|
||||
FMT_FUNC void report_error(const char* message) {
|
||||
FMT_THROW(format_error(message));
|
||||
#if FMT_EXCEPTIONS
|
||||
throw format_error(message);
|
||||
#else
|
||||
fputs(message, stderr);
|
||||
abort();
|
||||
#endif
|
||||
}
|
||||
|
||||
template <typename Locale> typename Locale::id format_facet<Locale>::id;
|
||||
|
Loading…
Reference in New Issue
Block a user