Disallow copy constructors/assignments.

For classes containing pointers/state that should not be copied.
This commit is contained in:
Jared Boone 2016-11-26 16:52:57 -08:00
parent 4eb0facacb
commit 46b3d9d087
8 changed files with 39 additions and 0 deletions

View file

@ -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();