From 86743d6d247127c04279c2038f4ad8f5595759a3 Mon Sep 17 00:00:00 2001 From: Mateusz Pusz Date: Thu, 18 Apr 2024 22:41:13 +0100 Subject: [PATCH] fix: `std::formattable` usage is now conditional --- src/core/include/mp-units/format.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/core/include/mp-units/format.h b/src/core/include/mp-units/format.h index 74f57580..18b1e5c8 100644 --- a/src/core/include/mp-units/format.h +++ b/src/core/include/mp-units/format.h @@ -265,7 +265,11 @@ public: // subentity-id ::= 'N' | 'U' | 'D' // format-spec ::= // +#if __cpp_lib_format_ranges template Rep> +#else +template +#endif class MP_UNITS_STD_FMT::formatter, Char> { static constexpr auto unit = get_unit(Reference); static constexpr auto dimension = get_quantity_spec(Reference).dimension;