Commit 60b2478a authored by Alan Frindell's avatar Alan Frindell Committed by Facebook Github Bot

Make DestructorCheck::Safety no-copy, no-move

Summary: It's not safe because of how it manipulates the linked list.  The intended usage is to declare it locally on the stack

Reviewed By: yfeldblum

Differential Revision: D5267507

fbshipit-source-id: 07a55eaee2c6a266bb233432f6a3383236594195
parent dd707e05
......@@ -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;
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment