From: Christopher Dykes Date: Fri, 18 Nov 2016 00:29:09 +0000 (-0800) Subject: Mark a couple more local constexpr values as static X-Git-Tag: v2016.11.21.00~15 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=4bd573d6abb80b1e8268f23d78ccb29fc7a1ef40;p=folly.git 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 --- 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;