Mark constexpr values needed within non-implicitly-capturing lambdas as static
[folly.git] / folly / futures / test / BarrierTest.cpp
index b3419d14e1e17b80a526d5608eb0e582e704c460..3fa3cc05ee33fc89cb26685c6316c41b24be76e0 100644 (file)
@@ -112,7 +112,7 @@ TEST(BarrierTest, Random) {
   //
   // At the end, we verify that exactly one future returning true was seen
   // for each iteration.
-  constexpr uint32_t numIterations = 1;
+  static constexpr uint32_t numIterations = 1;
   auto numThreads = folly::Random::rand32(30, 91);
 
   struct ThreadInfo {