mirror of
https://github.com/eried/portapack-mayhem.git
synced 2025-07-30 01:59:13 -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
|
@ -37,6 +37,11 @@ public:
|
|||
const baseband::Direction direction = baseband::Direction::Receive
|
||||
);
|
||||
~BasebandThread();
|
||||
|
||||
BasebandThread(const BasebandThread&) = delete;
|
||||
BasebandThread(BasebandThread&&) = delete;
|
||||
BasebandThread& operator=(const BasebandThread&) = delete;
|
||||
BasebandThread& operator=(BasebandThread&&) = delete;
|
||||
|
||||
// This getter should die, it's just here to leak information to code that
|
||||
// isn't in the right place to begin with.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue