From: Orvid King Date: Mon, 27 Jul 2015 21:41:06 +0000 (-0700) Subject: Fix a parse error in detail/ThreadLocalDetail.h under MSVC X-Git-Tag: v0.53.0~17 X-Git-Url: http://plrg.eecs.uci.edu/git/?a=commitdiff_plain;h=0aac063547d2cb06d88497d2d8b02cc2dd7e94a2;p=folly.git 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 --- 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;