From 72491443fceb4651de48aaeb2d6073cb4b5a9678 Mon Sep 17 00:00:00 2001 From: Mateusz Pusz Date: Fri, 19 Apr 2024 15:30:42 +0100 Subject: [PATCH] fix: use `std::formattable` only when fmtlib is not used --- src/core/include/mp-units/format.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/core/include/mp-units/format.h b/src/core/include/mp-units/format.h index 14e2c7281..061f676ce 100644 --- a/src/core/include/mp-units/format.h +++ b/src/core/include/mp-units/format.h @@ -265,7 +265,7 @@ class MP_UNITS_STD_FMT::formatter { // subentity-id ::= 'N' | 'U' | 'D' // format-spec ::= // -#if __cpp_lib_format_ranges +#if __cpp_lib_format_ranges && !MP_UNITS_USE_FMTLIB template Rep> #else template