diff --git a/include/fmt/ranges.h b/include/fmt/ranges.h index c21b6924..678df0f1 100644 --- a/include/fmt/ranges.h +++ b/include/fmt/ranges.h @@ -646,8 +646,9 @@ struct formatter< FMT_CONSTEXPR auto parse(parse_context& ctx) -> const Char* { auto it = underlying_.parse(ctx); if FMT_CONSTEXPR20 (range_format_kind::value == - range_format::debug_string) + range_format::debug_string) { underlying_.set_debug_format(); + } return it; }