From 17de6bd8726818705928f1627dfb9140f98a72e8 Mon Sep 17 00:00:00 2001 From: Mateusz Pusz Date: Fri, 19 Apr 2024 14:38:11 +0100 Subject: [PATCH] fix: clang compilation fixed workarounded with the CTAD for `quantity_formatter` --- src/core/include/mp-units/format.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/core/include/mp-units/format.h b/src/core/include/mp-units/format.h index 18b1e5c8..14e2c728 100644 --- a/src/core/include/mp-units/format.h +++ b/src/core/include/mp-units/format.h @@ -325,6 +325,8 @@ class MP_UNITS_STD_FMT::formatter, Char> { } void on_text(const Char* begin, const Char* end) const { std::copy(begin, end, out); } }; + template + quantity_formatter(const formatter&, OutputIt, Args...) -> quantity_formatter; template constexpr const Char* parse_quantity_specs(const Char* begin, const Char* end, Handler&& handler) const