util/CircularBuffer: explicitly forbid the copy operator
This commit is contained in:
parent
332ba42073
commit
10311b3a65
|
@ -45,6 +45,7 @@ public:
|
||||||
:capacity(_capacity), data(_data) {}
|
:capacity(_capacity), data(_data) {}
|
||||||
|
|
||||||
CircularBuffer(const CircularBuffer &other) = delete;
|
CircularBuffer(const CircularBuffer &other) = delete;
|
||||||
|
CircularBuffer &operator=(const CircularBuffer &other) = delete;
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
constexpr size_type Next(size_type i) const noexcept {
|
constexpr size_type Next(size_type i) const noexcept {
|
||||||
|
|
Loading…
Reference in New Issue