From: Christopher Dykes Date: Sat, 2 Apr 2016 00:56:17 +0000 (-0700) Subject: Don't use the plus operator unecessarily X-Git-Tag: 2016.07.26~377 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=d34f24256e3c50bed4268299fafe6e84c912561b;p=folly.git 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 --- diff --git a/folly/detail/ThreadLocalDetail.h b/folly/detail/ThreadLocalDetail.h index 23c566f0..1fa4844d 100644 --- a/folly/detail/ThreadLocalDetail.h +++ b/folly/detail/ThreadLocalDetail.h @@ -85,8 +85,9 @@ struct ElementWrapper { if (p) { ptr = p; - deleter1 = - +[](void* pt, TLPDestructionMode) { delete static_cast(pt); }; + deleter1 = [](void* pt, TLPDestructionMode) { + delete static_cast(pt); + }; ownsDeleter = false; } }