From 10311b3a65ca0111dd17b17cc8090faac32b0c6f Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Mon, 29 Jul 2024 22:15:48 +0200 Subject: [PATCH] util/CircularBuffer: explicitly forbid the copy operator --- src/util/CircularBuffer.hxx | 1 + 1 file changed, 1 insertion(+) diff --git a/src/util/CircularBuffer.hxx b/src/util/CircularBuffer.hxx index 99ee3046b..de7b69f98 100644 --- a/src/util/CircularBuffer.hxx +++ b/src/util/CircularBuffer.hxx @@ -45,6 +45,7 @@ public: :capacity(_capacity), data(_data) {} CircularBuffer(const CircularBuffer &other) = delete; + CircularBuffer &operator=(const CircularBuffer &other) = delete; protected: constexpr size_type Next(size_type i) const noexcept {