diff --git a/include/fmt/format.h b/include/fmt/format.h index 9d792acc..2788e0eb 100644 --- a/include/fmt/format.h +++ b/include/fmt/format.h @@ -1947,6 +1947,8 @@ FMT_CONSTEXPR auto write(OutputIt out, basic_string_view s, if (specs.width != 0) { if (is_debug) { struct counting_iterator { + using iterator_category = std::output_iterator_tag; + int n = 0; struct proxy { int& n;