From 4bd573d6abb80b1e8268f23d78ccb29fc7a1ef40 Mon Sep 17 00:00:00 2001 From: Christopher Dykes Date: Thu, 17 Nov 2016 16:29:09 -0800 Subject: [PATCH] Mark a couple more local constexpr values as static Summary: Because MSVC doesn't let you access it without capturing it from within a lambda otherwise. Reviewed By: yfeldblum Differential Revision: D4199867 fbshipit-source-id: 7b829b2cc373edbebe3498901fa323c89a211818 --- folly/io/async/test/EventBaseTest.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/folly/io/async/test/EventBaseTest.cpp b/folly/io/async/test/EventBaseTest.cpp index 524cff7b..940a1829 100644 --- a/folly/io/async/test/EventBaseTest.cpp +++ b/folly/io/async/test/EventBaseTest.cpp @@ -1829,8 +1829,8 @@ TEST(EventBaseTest, LoopKeepAliveShutdown) { TEST(EventBaseTest, LoopKeepAliveAtomic) { auto evb = folly::make_unique(); - constexpr size_t kNumThreads = 100; - constexpr size_t kNumTasks = 100; + static constexpr size_t kNumThreads = 100; + static constexpr size_t kNumTasks = 100; std::vector ts; std::vector>> batons; -- 2.34.1