From 1173721e6308b1dc44af022ebe98615403d629fd Mon Sep 17 00:00:00 2001 From: Bernard Cafarelli Date: Tue, 31 Dec 2024 12:38:12 +0100 Subject: [PATCH] For fmt 11, use report_error throw_format_error was deprecated and removed in fmt 11.1: https://github.com/fmtlib/fmt/commit/9a2aae37d4537b3de391ce29b905438cc84b4633 It was just a redirect to report_error, so use this one for fmt 11 --- src/celutil/formatnum.cpp | 2 +- src/celutil/formatnum.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/celutil/formatnum.cpp b/src/celutil/formatnum.cpp index bb86d08413..ac6b4d074b 100644 --- a/src/celutil/formatnum.cpp +++ b/src/celutil/formatnum.cpp @@ -58,7 +58,7 @@ struct fmt::formatter if (it != ctx.end() && *it != '}') { #if FMT_VERSION >= 100100 - throw_format_error("invalid format"); + report_error("invalid format"); #else assert(0); return ctx.end(); diff --git a/src/celutil/formatnum.h b/src/celutil/formatnum.h index 5b7fba9ba4..2c2a6723ed 100644 --- a/src/celutil/formatnum.h +++ b/src/celutil/formatnum.h @@ -122,7 +122,7 @@ struct fmt::formatter> if (it != ctx.end() && *it != '}') { #if FMT_VERSION >= 100100 - throw_format_error("invalid format"); + report_error("invalid format"); #else assert(0); return ctx.end();