From b6c01ffe9a64e0e5fae209bfb7b0833c8132f2be Mon Sep 17 00:00:00 2001 From: Mateusz Pusz Date: Thu, 3 Apr 2025 08:02:06 +0100 Subject: [PATCH] fix: `arg.visit` support fixed --- 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 e63627df..92312bb1 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) || __cplusplus > 202302 +#if (defined MP_UNITS_USE_FMTLIB && FMT_VERSION >= 110000) || __cpp_lib_format > 202306L const unsigned long long value = arg.visit(Handler{}); #else const unsigned long long value = MP_UNITS_STD_FMT::visit_format_arg(Handler{}, arg);