mirror of
https://github.com/fmtlib/fmt.git
synced 2024-11-19 20:18:49 +00:00
Add override to grow
This commit is contained in:
parent
065889a593
commit
7fc3d1f54c
@ -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();
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user