projects
/
folly.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
27f1f7e
)
Disable the constexpr tests for findFirstSet, findLastSet and nextPowTwo under MSVC
author
Christopher Dykes
<cdykes@fb.com>
Thu, 11 Aug 2016 21:25:18 +0000
(14:25 -0700)
committer
Facebook 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
patch
|
blob
|
history
diff --git
a/folly/test/BitsTest.cpp
b/folly/test/BitsTest.cpp
index cdce52012f45dccf97171bad43c5bb17994bb92e..2b2a140102374189a24791bca7916b4e81208949 100644
(file)
--- a/
folly/test/BitsTest.cpp
+++ b/
folly/test/BitsTest.cpp
@@
-23,12
+23,15
@@
using namespace folly;
// Test constexpr-ness.
-#if
ndef __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 {