From 2b05d2481437532809d9412f99fa675f5727c382 Mon Sep 17 00:00:00 2001 From: Victor Zverovich Date: Wed, 10 Jan 2024 17:51:44 -0800 Subject: [PATCH] Remove unnecessary trait specialization --- include/fmt/base.h | 4 ++++ include/fmt/format.h | 7 ------- 2 files changed, 4 insertions(+), 7 deletions(-) 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