Skip to content

Commit

Permalink
fix: old-style aggregate initialization used for format_checker whi…
Browse files Browse the repository at this point in the history
…ch should fix apple-clang build
  • Loading branch information
mpusz committed Jan 23, 2024
1 parent dc73e40 commit fcadaf5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/core/include/mp-units/format.h
Original file line number Diff line number Diff line change
Expand Up @@ -431,7 +431,7 @@ class MP_UNITS_STD_FMT::formatter<mp_units::quantity<Reference, Rep>, 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;
Expand Down

0 comments on commit fcadaf5

Please sign in to comment.