diff --git a/src/core/ring_buffer.hpp b/src/core/ring_buffer.hpp index 8e9265e829..ef09f6cc00 100644 --- a/src/core/ring_buffer.hpp +++ b/src/core/ring_buffer.hpp @@ -160,7 +160,7 @@ public: ring_buffer_iterator operator +(std::ptrdiff_t delta) const { ring_buffer_iterator tmp = *this; - this->move(delta); + tmp += delta; return tmp; } @@ -173,7 +173,7 @@ public: ring_buffer_iterator operator -(std::ptrdiff_t delta) const { ring_buffer_iterator tmp = *this; - this->move(-delta); + tmp -= delta; return tmp; }