util/CircularBuffer: explicitly forbid the copy operator

This commit is contained in:
Max Kellermann 2024-07-29 22:15:48 +02:00
parent 332ba42073
commit 10311b3a65
1 changed files with 1 additions and 0 deletions

View File

@ -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 {