From 4f9311e689b40618bed9e111df92da88e9c51eb3 Mon Sep 17 00:00:00 2001 From: Victor Zverovich Date: Fri, 27 May 2022 10:49:19 -0700 Subject: [PATCH] Fix definition of error_handler::on_error --- include/fmt/core.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/fmt/core.h b/include/fmt/core.h index ad037f8b..790ba42a 100644 --- a/include/fmt/core.h +++ b/include/fmt/core.h @@ -585,7 +585,7 @@ struct error_handler { constexpr error_handler(const error_handler&) = default; // This function is intentionally not constexpr to give a compile-time error. - FMT_NORETURN FMT_API void on_error(const char* message) { + FMT_NORETURN void on_error(const char* message) { throw_format_error(message); } };