diff --git a/include/fmt/format.h b/include/fmt/format.h index c6d6699a..708db3e3 100644 --- a/include/fmt/format.h +++ b/include/fmt/format.h @@ -451,11 +451,6 @@ inline Iterator& reserve(Iterator& it, std::size_t) { return it; } -template class null_terminating_iterator; - -template -FMT_CONSTEXPR_DECL const Char* pointer_from(null_terminating_iterator it); - // An output iterator that counts the number of objects written to it and // discards them. template class counting_iterator { diff --git a/include/fmt/prepare.h b/include/fmt/prepare.h index e1bf4bd1..734184f8 100644 --- a/include/fmt/prepare.h +++ b/include/fmt/prepare.h @@ -109,7 +109,7 @@ class format_preparation_handler : public internal::error_handler { typedef format_part part; public: - typedef internal::null_terminating_iterator iterator; + typedef typename basic_string_view::iterator iterator; FMT_CONSTEXPR format_preparation_handler(basic_string_view format, PartsContainer& parts) @@ -357,9 +357,6 @@ template class compiletime_prepared_parts_type_provider { using char_type = char_t; class count_handler { - private: - typedef internal::null_terminating_iterator iterator; - public: FMT_CONSTEXPR count_handler() : counter_(0u) {}