Make buffer_appender default-constructible when back_insert_iterator is

This commit is contained in:
Jason Cobb
2021-03-31 14:06:48 -04:00
committed by Victor Zverovich
parent 0d6b70d96b
commit c62e4c30f4
2 changed files with 18 additions and 1 deletions

View File

@@ -877,7 +877,7 @@ class buffer_appender : public std::back_insert_iterator<buffer<T>> {
using base = std::back_insert_iterator<buffer<T>>;
public:
explicit buffer_appender(buffer<T>& buf) : base(buf) {}
using std::back_insert_iterator<buffer<T>>::back_insert_iterator;
buffer_appender(base it) : base(it) {}
buffer_appender& operator++() {