From ca9c3086f4bbb99e749439b754eff609a7eacf7a Mon Sep 17 00:00:00 2001 From: Mateusz Pusz Date: Wed, 19 Mar 2025 12:30:53 +0100 Subject: [PATCH] refactor: `visit_format_arg` is deprecated in C++26 --- src/core/include/mp-units/bits/fmt.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/core/include/mp-units/bits/fmt.h b/src/core/include/mp-units/bits/fmt.h index 8e5e5321..e63627df 100644 --- a/src/core/include/mp-units/bits/fmt.h +++ b/src/core/include/mp-units/bits/fmt.h @@ -150,7 +150,7 @@ template template [[nodiscard]] constexpr int get_dynamic_spec(FormatArg arg) { -#if defined MP_UNITS_USE_FMTLIB && FMT_VERSION >= 110000 +#if (defined MP_UNITS_USE_FMTLIB && FMT_VERSION >= 110000) || __cplusplus > 202302 const unsigned long long value = arg.visit(Handler{}); #else const unsigned long long value = MP_UNITS_STD_FMT::visit_format_arg(Handler{}, arg);