diff options
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. |