From d34f24256e3c50bed4268299fafe6e84c912561b Mon Sep 17 00:00:00 2001 From: Christopher Dykes Date: Fri, 1 Apr 2016 17:56:17 -0700 Subject: [PATCH] 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 --- folly/detail/ThreadLocalDetail.h | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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; } } -- 2.34.1