diff --git a/include/fmt/core.h b/include/fmt/core.h index 0c8ddd18..2fe9f150 100644 --- a/include/fmt/core.h +++ b/include/fmt/core.h @@ -861,7 +861,7 @@ class iterator_buffer final : public Traits, public buffer { T data_[buffer_size]; protected: - void grow(size_t) final FMT_OVERRIDE { + void grow(size_t) FMT_OVERRIDE { if (this->size() == buffer_size) flush(); } @@ -887,7 +887,7 @@ class iterator_buffer final : public Traits, public buffer { template class iterator_buffer final : public buffer { protected: - void grow(size_t) final FMT_OVERRIDE {} + void grow(size_t) FMT_OVERRIDE {} public: explicit iterator_buffer(T* out, size_t = 0) : buffer(out, 0, ~size_t()) {} @@ -905,7 +905,7 @@ class iterator_buffer, Container& container_; protected: - void grow(size_t capacity) final FMT_OVERRIDE { + void grow(size_t capacity) FMT_OVERRIDE { container_.resize(capacity); this->set(&container_[0], capacity); } @@ -928,7 +928,7 @@ template class counting_buffer final : public buffer { size_t count_ = 0; protected: - void grow(size_t) final FMT_OVERRIDE { + void grow(size_t) FMT_OVERRIDE { if (this->size() != buffer_size) return; count_ += this->size(); this->clear(); diff --git a/include/fmt/format.h b/include/fmt/format.h index f1417f86..225b23ac 100644 --- a/include/fmt/format.h +++ b/include/fmt/format.h @@ -657,7 +657,7 @@ class basic_memory_buffer final : public detail::buffer { } protected: - void grow(size_t size) final FMT_OVERRIDE; + void grow(size_t size) FMT_OVERRIDE; public: using value_type = T;