diff options
author | David Robillard <d@drobilla.net> | 2020-07-17 19:35:01 +0200 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2020-07-17 19:59:47 +0200 |
commit | ef887c4d678b632ffebd753049056ffa5bfd5c62 (patch) | |
tree | ea8be1dc9a577a113a72e0168e195fefa59d26bf /raul | |
parent | 9788bd372ebd949d14f8656b3ce171202f4d7e8b (diff) | |
download | raul-ef887c4d678b632ffebd753049056ffa5bfd5c62.tar.gz raul-ef887c4d678b632ffebd753049056ffa5bfd5c62.tar.bz2 raul-ef887c4d678b632ffebd753049056ffa5bfd5c62.zip |
Explicitly delete copy operators
Diffstat (limited to 'raul')
-rw-r--r-- | raul/Maid.hpp | 2 | ||||
-rw-r--r-- | raul/Socket.hpp | 3 |
2 files changed, 5 insertions, 0 deletions
diff --git a/raul/Maid.hpp b/raul/Maid.hpp index fa54871..b7ae5d9 100644 --- a/raul/Maid.hpp +++ b/raul/Maid.hpp @@ -42,6 +42,8 @@ public: class Disposable : public Deletable { public: Disposable() = default; + Disposable(const Disposable&) = delete; + Disposable& operator=(const Disposable&) = delete; private: friend class Maid; diff --git a/raul/Socket.hpp b/raul/Socket.hpp index 470527f..307aab7 100644 --- a/raul/Socket.hpp +++ b/raul/Socket.hpp @@ -53,6 +53,9 @@ public: socklen_t addr_len, int fd); + Socket(const Socket&) = delete; + Socket& operator=(const Socket&) = delete; + ~Socket(); /** Bind a server socket to an address. |