Mark constexpr values needed within non-implicitly-capturing lambdas as static
[folly.git] / folly / test / SingletonThreadLocalTest.cpp
index 4301147177e7d343b098e0963df855ebd69ec1f4..4703dde525bed100eea5a8fd21862d3132a03bc3 100644 (file)
@@ -40,7 +40,7 @@ FooSingletonTL theFooSingleton;
 }
 
 TEST(SingletonThreadLocalTest, OneSingletonPerThread) {
-  const std::size_t targetThreadCount{64};
+  static constexpr std::size_t targetThreadCount{64};
   std::atomic<std::size_t> completedThreadCount{0};
   Synchronized<std::unordered_set<Foo*>> fooAddresses{};
   std::vector<std::thread> threads{};