From 0aac063547d2cb06d88497d2d8b02cc2dd7e94a2 Mon Sep 17 00:00:00 2001 From: Orvid King Date: Mon, 27 Jul 2015 14:41:06 -0700 Subject: [PATCH] Fix a parse error in detail/ThreadLocalDetail.h under MSVC Summary: I have no idea why this specific declaration would error, or if there is a difference in meaning, but this fixes MSVC's absurd parser error. Closes #277 Reviewed By: @yfeldblum Differential Revision: D2284096 --- folly/detail/ThreadLocalDetail.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/folly/detail/ThreadLocalDetail.h b/folly/detail/ThreadLocalDetail.h index 42c0a2d0..bddb6560 100644 --- a/folly/detail/ThreadLocalDetail.h +++ b/folly/detail/ThreadLocalDetail.h @@ -450,8 +450,8 @@ struct StaticMeta { #ifdef FOLLY_TLD_USE_FOLLY_TLS template -FOLLY_TLS ThreadEntry StaticMeta::threadEntry_{nullptr, 0, - nullptr, nullptr}; +FOLLY_TLS ThreadEntry StaticMeta::threadEntry_ = {nullptr, 0, + nullptr, nullptr}; #endif template StaticMeta* StaticMeta::inst_ = nullptr; -- 2.34.1