mirror of
https://github.com/fmtlib/fmt.git
synced 2025-09-14 23:30:20 -04: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
|
} // namespace detail
|
||||||
|
|
||||||
FMT_FUNC void report_error(const char* message) {
|
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;
|
template <typename Locale> typename Locale::id format_facet<Locale>::id;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user