diff --git a/include/fmt/base.h b/include/fmt/base.h index b9df9cdca3cd8..7cb3137c8ba0a 100644 --- a/include/fmt/base.h +++ b/include/fmt/base.h @@ -1087,7 +1087,11 @@ template class basic_appender { } public: + using iterator_category = void; + using value_type = T; using difference_type = ptrdiff_t; + using pointer = T*; + using reference = T&; FMT_UNCHECKED_ITERATOR(basic_appender); FMT_CONSTEXPR basic_appender(detail::buffer& buf) : buffer_(&buf) {} diff --git a/include/fmt/format.h b/include/fmt/format.h index b6c5a1b820d21..f380d563a524b 100644 --- a/include/fmt/format.h +++ b/include/fmt/format.h @@ -271,13 +271,6 @@ inline auto ctzll(uint64_t x) -> int { FMT_END_NAMESPACE #endif -namespace std { -template struct iterator_traits> { - using value_type = void; - using iterator_category = std::output_iterator_tag; -}; -} // namespace std - FMT_BEGIN_NAMESPACE template