make folly/Bits.h clang-compatible
[folly.git] / folly / test / BitsTest.cpp
index 2490161b507f84491128749354c97446402d7ad7..d617caa60b592b5c5b8f112b9ed4a145e5a96523 100644 (file)
 using namespace folly;
 
 // Test constexpr-ness.
+#ifndef __clang__
 static_assert(findFirstSet(2u) == 2, "findFirstSet");
 static_assert(findLastSet(2u) == 2, "findLastSet");
 static_assert(nextPowTwo(2u) == 2, "nextPowTwo");
 static_assert(isPowTwo(2u), "isPowTwo");
+#endif  // __clang__
 
 namespace {