Add override to grow

This commit is contained in:
Victor Zverovich 2020-08-08 07:23:11 -07:00
parent 065889a593
commit 7fc3d1f54c
2 changed files with 5 additions and 5 deletions

View File

@ -765,7 +765,7 @@ class iterator_buffer : public Traits, public buffer<T> {
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<T> {
template <typename T> class iterator_buffer<T*, T> : public buffer<T> {
protected:
void grow(size_t) final {}
void grow(size_t) final FMT_OVERRIDE {}
public:
explicit iterator_buffer(T* out, size_t = 0) : buffer<T>(out, 0, ~size_t()) {}
@ -804,7 +804,7 @@ class iterator_buffer<std::back_insert_iterator<Container>,
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 <typename T = char> class counting_buffer : public buffer<T> {
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();

View File

@ -622,7 +622,7 @@ class basic_memory_buffer : public detail::buffer<T> {
}
protected:
void grow(size_t size) final;
void grow(size_t size) final FMT_OVERRIDE;
public:
using value_type = T;