diff --git a/include/fmt/ranges.h b/include/fmt/ranges.h index 2eb5ffe2..eac81a79 100644 --- a/include/fmt/ranges.h +++ b/include/fmt/ranges.h @@ -629,14 +629,14 @@ template struct formatter, Char> { template FMT_CONSTEXPR auto parse(ParseContext& ctx) -> decltype(ctx.begin()) { - return do_parse(ctx, std::integral_constant{}); + return do_parse(ctx, std::integral_constant()); } template auto format(const tuple_join_view& value, FormatContext& ctx) const -> typename FormatContext::iterator { return do_format(value, ctx, - std::integral_constant{}); + std::integral_constant()); } private: @@ -655,7 +655,7 @@ struct formatter, Char> { -> decltype(ctx.begin()) { auto end = std::get(formatters_).parse(ctx); if (N > 1) { - auto end1 = do_parse(ctx, std::integral_constant{}); + auto end1 = do_parse(ctx, std::integral_constant()); if (end != end1) FMT_THROW(format_error("incompatible format specs for tuple elements")); } @@ -678,7 +678,7 @@ struct formatter, Char> { if (N > 1) { out = std::copy(value.sep.begin(), value.sep.end(), out); ctx.advance_to(out); - return do_format(value, ctx, std::integral_constant{}); + return do_format(value, ctx, std::integral_constant()); } return out; }