From 72606f239151402ac614c5c8fb6f4c66235782f4 Mon Sep 17 00:00:00 2001 From: Victor Zverovich Date: Sat, 20 Jan 2018 06:40:42 -0800 Subject: [PATCH] Add missing types to counting_iterator --- include/fmt/format.h | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/include/fmt/format.h b/include/fmt/format.h index 0db5dd5d..1b3395e1 100644 --- a/include/fmt/format.h +++ b/include/fmt/format.h @@ -628,6 +628,12 @@ class counting_iterator { mutable T blackhole_; public: + using iterator_category = std::output_iterator_tag; + using value_type = T; + using difference_type = std::ptrdiff_t; + using pointer = T*; + using reference = T&; + explicit counting_iterator(std::size_t &count): count_(count) {} counting_iterator(const counting_iterator &other): count_(other.count_) {}