mirror of
https://github.com/portapack-mayhem/mayhem-firmware.git
synced 2025-08-20 03:37:43 +00:00
Disallow copy constructors/assignments.
For classes containing pointers/state that should not be copied.
This commit is contained in:
@@ -34,6 +34,11 @@ class StreamInput {
|
||||
public:
|
||||
StreamInput(CaptureConfig* const config);
|
||||
|
||||
StreamInput(const StreamInput&) = delete;
|
||||
StreamInput(StreamInput&&) = delete;
|
||||
StreamInput& operator=(const StreamInput&) = delete;
|
||||
StreamInput& operator=(StreamInput&&) = delete;
|
||||
|
||||
size_t write(const void* const data, const size_t length);
|
||||
|
||||
private:
|
||||
|
Reference in New Issue
Block a user