mirror of
https://github.com/eried/portapack-mayhem.git
synced 2025-07-30 18:19:08 -04:00
Disallow copy constructors/assignments.
For classes containing pointers/state that should not be copied.
This commit is contained in:
parent
4eb0facacb
commit
46b3d9d087
8 changed files with 39 additions and 0 deletions
|
@ -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:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue