mirror of
https://github.com/portapack-mayhem/mayhem-firmware.git
synced 2026-09-10 00:29:33 +00:00
Disallow copy constructors/assignments.
For classes containing pointers/state that should not be copied.
This commit is contained in:
@@ -32,6 +32,11 @@ public:
|
||||
BufferExchange(CaptureConfig* const config);
|
||||
~BufferExchange();
|
||||
|
||||
BufferExchange(const BufferExchange&) = delete;
|
||||
BufferExchange(BufferExchange&&) = delete;
|
||||
BufferExchange& operator=(const BufferExchange&) = delete;
|
||||
BufferExchange& operator=(BufferExchange&&) = delete;
|
||||
|
||||
#if defined(LPC43XX_M0)
|
||||
bool empty() const {
|
||||
return fifo_buffers_for_application->is_empty();
|
||||
|
||||
Reference in New Issue
Block a user