Skip to content

Commit

Permalink
Use FMT_OVERRIDE on method declaration instead of definition
Browse files Browse the repository at this point in the history
  • Loading branch information
jcelerier committed Sep 23, 2016
1 parent 0bb6331 commit 1ec2486
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions fmt/format.h
Original file line number Diff line number Diff line change
Expand Up @@ -689,7 +689,7 @@ class MemoryBuffer : private Allocator, public Buffer<T> {
}

protected:
void grow(std::size_t size);
void grow(std::size_t size) FMT_OVERRIDE;

public:
explicit MemoryBuffer(const Allocator &alloc = Allocator())
Expand Down Expand Up @@ -734,7 +734,7 @@ class MemoryBuffer : private Allocator, public Buffer<T> {
};

template <typename T, std::size_t SIZE, typename Allocator>
void MemoryBuffer<T, SIZE, Allocator>::grow(std::size_t size) FMT_OVERRIDE {
void MemoryBuffer<T, SIZE, Allocator>::grow(std::size_t size) {
std::size_t new_capacity = this->capacity_ + this->capacity_ / 2;
if (size > new_capacity)
new_capacity = size;
Expand Down

0 comments on commit 1ec2486

Please sign in to comment.