Commit d34f2425 authored by Christopher Dykes's avatar Christopher Dykes Committed by Facebook Github Bot 1

Don't use the plus operator unecessarily

Summary: MSVC doesn't like this and complains about ambigious overloads.

Reviewed By: ericniebler

Differential Revision: D3107438

fb-gh-sync-id: 597ba85fdb7640b0a0fda352bf53ce31cf0e38b7
fbshipit-source-id: 597ba85fdb7640b0a0fda352bf53ce31cf0e38b7
parent 12d273d2
...@@ -85,8 +85,9 @@ struct ElementWrapper { ...@@ -85,8 +85,9 @@ struct ElementWrapper {
if (p) { if (p) {
ptr = p; ptr = p;
deleter1 = deleter1 = [](void* pt, TLPDestructionMode) {
+[](void* pt, TLPDestructionMode) { delete static_cast<Ptr>(pt); }; delete static_cast<Ptr>(pt);
};
ownsDeleter = false; ownsDeleter = false;
} }
} }
......
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