Skip to content

Commit

Permalink
Fix definition of error_handler::on_error
Browse files Browse the repository at this point in the history
  • Loading branch information
vitaut committed May 27, 2022
1 parent 652fea4 commit 4f9311e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion include/fmt/core.h
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
};
Expand Down

0 comments on commit 4f9311e

Please sign in to comment.