Commit 25d70b2c authored by Yedidya Feldblum's avatar Yedidya Feldblum Committed by Facebook Github Bot

Declare deleted new and delete operators in pairs in ScopeGuard

Summary: [Folly] Declare deleted `new` and `delete` operators in pairs in `ScopeGuard`.

Reviewed By: Orvid

Differential Revision: D10119848

fbshipit-source-id: 3588ed299248efd124d216bfaf5e472795f6a7aa
parent 2d042e64
...@@ -230,6 +230,7 @@ class ScopeGuardForNewException { ...@@ -230,6 +230,7 @@ class ScopeGuardForNewException {
ScopeGuardForNewException(const ScopeGuardForNewException& other) = delete; ScopeGuardForNewException(const ScopeGuardForNewException& other) = delete;
void* operator new(std::size_t) = delete; void* operator new(std::size_t) = delete;
void operator delete(void*) = delete;
FunctionType function_; FunctionType function_;
int exceptionCounter_{uncaught_exceptions()}; int exceptionCounter_{uncaught_exceptions()};
......
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