Remove unnecessary trait specialization

This commit is contained in:
Victor Zverovich 2024-01-10 17:51:44 -08:00
parent 971f7ae768
commit c5340539f9
2 changed files with 4 additions and 7 deletions

View File

@ -1087,7 +1087,11 @@ template <typename T> class basic_appender {
}
public:
using iterator_category = int;
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<T>& buf) : buffer_(&buf) {}

View File

@ -271,13 +271,6 @@ inline auto ctzll(uint64_t x) -> int {
FMT_END_NAMESPACE
#endif
namespace std {
template <typename T> struct iterator_traits<fmt::basic_appender<T>> {
using value_type = void;
using iterator_category = std::output_iterator_tag;
};
} // namespace std
FMT_BEGIN_NAMESPACE
template <typename Char, typename Traits, typename Allocator>