diff --git a/include/fmt/core.h b/include/fmt/core.h index f8b2c709..2816a64b 100644 --- a/include/fmt/core.h +++ b/include/fmt/core.h @@ -765,7 +765,7 @@ class iterator_buffer : public Traits, public buffer { T data_[buffer_size]; protected: - void grow(size_t) final { + void grow(size_t) final FMT_OVERRIDE { if (this->size() == buffer_size) flush(); } void flush(); @@ -786,7 +786,7 @@ class iterator_buffer : public Traits, public buffer { template class iterator_buffer : public buffer { protected: - void grow(size_t) final {} + void grow(size_t) final FMT_OVERRIDE {} public: explicit iterator_buffer(T* out, size_t = 0) : buffer(out, 0, ~size_t()) {} @@ -804,7 +804,7 @@ class iterator_buffer, Container& container_; protected: - void grow(size_t capacity) final { + void grow(size_t capacity) final FMT_OVERRIDE { container_.resize(capacity); this->set(&container_[0], capacity); } @@ -827,7 +827,7 @@ template class counting_buffer : public buffer { size_t count_ = 0; protected: - void grow(size_t) final { + void grow(size_t) final 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 93e4b1e6..a0c8045e 100644 --- a/include/fmt/format.h +++ b/include/fmt/format.h @@ -622,7 +622,7 @@ class basic_memory_buffer : public detail::buffer { } protected: - void grow(size_t size) final; + void grow(size_t size) final FMT_OVERRIDE; public: using value_type = T;