From 9953e69b6700d42db8e67d797d2f7920fd978894 Mon Sep 17 00:00:00 2001 From: Gunnar Mills Date: Sun, 15 Oct 2017 11:37:16 -0500 Subject: Remove move constructor in Watch class The Watch class is not moveable since the this ptr is passed to sd_event_add_io for context. After a move, systemd context will be pointing at something random. Based on feedback on https://gerrit.openbmc-project.xyz/#/c/6718/7/watch.hpp@35 Change-Id: Idbed233bf84c814d76899dac4fa097c1ee8915f4 Signed-off-by: Gunnar Mills --- watch.hpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/watch.hpp b/watch.hpp index b118d59..99854b7 100644 --- a/watch.hpp +++ b/watch.hpp @@ -30,8 +30,8 @@ class Watch Watch(const Watch&) = delete; Watch& operator=(const Watch&) = delete; - Watch(Watch&&) = default; - Watch& operator=(Watch&&) = default; + Watch(Watch&&) = delete; + Watch& operator=(Watch&&) = delete; /** @brief dtor - remove inotify watch and close fd's */ -- cgit v1.2.3