projects
/
folly.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Make DestructorCheck::Safety no-copy, no-move
[folly.git]
/
folly
/
io
/
async
/
DestructorCheck.h
diff --git
a/folly/io/async/DestructorCheck.h
b/folly/io/async/DestructorCheck.h
index 2d9930fbfbb9027f14fef1e7dac6b6e02a0f67c9..4e5346fba84be91b9376fc7c1e5215b5b871783d 100644
(file)
--- a/
folly/io/async/DestructorCheck.h
+++ b/
folly/io/async/DestructorCheck.h
@@
-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;
}