Disable the constexpr tests for findFirstSet, findLastSet and nextPowTwo under MSVC
authorChristopher Dykes <cdykes@fb.com>
Thu, 11 Aug 2016 21:25:18 +0000 (14:25 -0700)
committerFacebook Github Bot 7 <facebook-github-bot-7-bot@fb.com>
Thu, 11 Aug 2016 21:39:03 +0000 (14:39 -0700)
Summary: Because they aren't currently constexpr under MSVC.

Reviewed By: yfeldblum

Differential Revision: D3705095

fbshipit-source-id: ea266ebd9677fb2ba232476160f7c10a23954db9

folly/test/BitsTest.cpp

index cdce52012f45dccf97171bad43c5bb17994bb92e..2b2a140102374189a24791bca7916b4e81208949 100644 (file)
 using namespace folly;
 
 // Test constexpr-ness.
-#ifndef __clang__
+#if !defined(__clang__) && !defined(_MSC_VER)
 static_assert(findFirstSet(2u) == 2, "findFirstSet");
 static_assert(findLastSet(2u) == 2, "findLastSet");
 static_assert(nextPowTwo(2u) == 2, "nextPowTwo");
+#endif
+
+#ifndef __clang__
 static_assert(isPowTwo(2u), "isPowTwo");
-#endif  // __clang__
+#endif
 
 namespace {