From 2a23ce19870ed8fa072ffd052fe8255979722e8c Mon Sep 17 00:00:00 2001 From: Maxime Coste Date: Tue, 25 Mar 2014 09:15:56 +0000 Subject: [PATCH] FDWatchers are non copiable and non movable --- src/event_manager.hh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/event_manager.hh b/src/event_manager.hh index 788827b8..e14468ba 100644 --- a/src/event_manager.hh +++ b/src/event_manager.hh @@ -19,6 +19,8 @@ public: int fd() const { return m_fd; } void run() { m_callback(*this); } private: + FDWatcher(const FDWatcher&) = delete; + int m_fd; Callback m_callback; };