From fcadaf5d70cf8e15e210a110e9cb4f268d01a104 Mon Sep 17 00:00:00 2001 From: Mateusz Pusz Date: Tue, 23 Jan 2024 22:04:31 +0100 Subject: [PATCH] fix: old-style aggregate initialization used for `format_checker` which should fix apple-clang build --- 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 fb98a83c7..586550213 100644 --- a/src/core/include/mp-units/format.h +++ b/src/core/include/mp-units/format.h @@ -431,7 +431,7 @@ class MP_UNITS_STD_FMT::formatter, Char> { auto it = parse_fill_align_width(ctx, begin, end, specs_, mp_units::detail::fmt_align::right); if (it == end) return it; - format_checker checker(ctx, format_str_lengths_); + format_checker checker{ctx, format_str_lengths_}; end = parse_quantity_specs(it, end, checker); modifiers_format_str_ = {it, end}; return end;