diff --git a/include/fmt/core.h b/include/fmt/core.h index 404b81d0..e3ecfaa3 100644 --- a/include/fmt/core.h +++ b/include/fmt/core.h @@ -925,6 +925,7 @@ class iterator_buffer, : buffer(c.size()), container_(c) {} explicit iterator_buffer(std::back_insert_iterator out, size_t = 0) : iterator_buffer(get_container(out)) {} + auto out() -> std::back_insert_iterator { return std::back_inserter(container_); } @@ -1458,7 +1459,6 @@ class appender : public std::back_insert_iterator> { FMT_UNCHECKED_ITERATOR(appender); auto operator++() noexcept -> appender& { return *this; } - auto operator++(int) noexcept -> appender { return *this; } }; @@ -1606,7 +1606,7 @@ struct is_contiguous_back_insert_iterator> template <> struct is_contiguous_back_insert_iterator : std::true_type {}; -// A type-erased reference to an std::locale to avoid heavy include. +// A type-erased reference to an std::locale to avoid a heavy include. class locale_ref { private: const void* locale_; // A type-erased pointer to std::locale.