prevPowTwo / faster bit operations
[folly.git] / folly / test / RangeTest.cpp
index 294659c90d621ad7e5775cf5f459164b1e55aff8..ef4c1e1e341d0ea07145b4760b3999eec7f02e98 100644 (file)
@@ -19,6 +19,7 @@
 
 #include <folly/Range.h>
 
+#include <folly/portability/GTest.h>
 #include <folly/portability/Memory.h>
 #include <folly/portability/SysMman.h>
 
@@ -31,7 +32,6 @@
 #include <vector>
 #include <boost/range/concepts.hpp>
 #include <boost/algorithm/string/trim.hpp>
-#include <gtest/gtest.h>
 
 using namespace folly;
 using namespace folly::detail;
@@ -293,7 +293,7 @@ TEST(StringPiece, InvalidRange) {
   EXPECT_THROW(a.subpiece(6), std::out_of_range);
 }
 
-constexpr char helloArray[] = "hello";
+constexpr const char* helloArray = "hello";
 
 TEST(StringPiece, Constexpr) {
   constexpr StringPiece hello1("hello");