Make DestructorCheck::Safety no-copy, no-move
[folly.git] / folly / io / async / DestructorCheck.h
index 2d9930f..4e5346f 100644 (file)
@@ -108,6 +108,11 @@ class DestructorCheck {
       }
     }
 
+    Safety(const Safety&) = delete;
+    Safety(Safety&& goner) = delete;
+    Safety& operator=(const Safety&) = delete;
+    Safety& operator=(Safety&&) = delete;
+
     bool destroyed() const {
       return prev_ == nullptr;
     }