Fix a parse error in detail/ThreadLocalDetail.h under MSVC
authorOrvid King <blah38621@gmail.com>
Mon, 27 Jul 2015 21:41:06 +0000 (14:41 -0700)
committerfacebook-github-bot-4 <folly-bot@fb.com>
Fri, 31 Jul 2015 20:22:30 +0000 (13:22 -0700)
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

index 42c0a2d008ebd4c68b60fbce7bfd07fb0a9b90b6..bddb65604dc28019fc016d1a955ea06a32452005 100644 (file)
@@ -450,8 +450,8 @@ struct StaticMeta {
 
 #ifdef FOLLY_TLD_USE_FOLLY_TLS
 template <class Tag>
-FOLLY_TLS ThreadEntry StaticMeta<Tag>::threadEntry_{nullptr, 0,
-                                                    nullptr, nullptr};
+FOLLY_TLS ThreadEntry StaticMeta<Tag>::threadEntry_ = {nullptr, 0,
+                                                       nullptr, nullptr};
 #endif
 template <class Tag> StaticMeta<Tag>* StaticMeta<Tag>::inst_ = nullptr;