From 43582c078d1916cb6ffed1639d9caa1676fce32c Mon Sep 17 00:00:00 2001 From: Barry Revzin Date: Fri, 24 Dec 2021 12:59:50 -0600 Subject: [PATCH] Adding iterator_category to counting_iterator. --- include/fmt/format.h | 2 ++ 1 file changed, 2 insertions(+) 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;