Mark a couple more local constexpr values as static
authorChristopher Dykes <cdykes@fb.com>
Fri, 18 Nov 2016 00:29:09 +0000 (16:29 -0800)
committerFacebook Github Bot <facebook-github-bot-bot@fb.com>
Fri, 18 Nov 2016 00:38:38 +0000 (16:38 -0800)
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

index 524cff7bb6390c6f2557c05bb952417e7560816b..940a1829dd180b226346d02b19385296fe46f1c7 100644 (file)
@@ -1829,8 +1829,8 @@ TEST(EventBaseTest, LoopKeepAliveShutdown) {
 TEST(EventBaseTest, LoopKeepAliveAtomic) {
   auto evb = folly::make_unique<EventBase>();
 
-  constexpr size_t kNumThreads = 100;
-  constexpr size_t kNumTasks = 100;
+  static constexpr size_t kNumThreads = 100;
+  static constexpr size_t kNumTasks = 100;
 
   std::vector<std::thread> ts;
   std::vector<std::unique_ptr<Baton<>>> batons;