Prevent erroneous code like vector<fbstring>{{"this", "that"}} from compiling
[folly.git] / folly / test / FBStringTest.cpp
index fb4a79912f044edeb303d2abbd653f07bc7cc224..4c7ba8f7565a7233c98feb40b4617000b13b7c9a 100644 (file)
@@ -1426,3 +1426,9 @@ TEST(FBStringCtorTest, NullZeroConstruction) {
   folly::fbstring f(p, n);
   EXPECT_EQ(f.size(), 0);
 }
+
+// TEST(FBStringCtorTest, BadIteratorPair) {
+//   // Should fail to compile
+//   std::vector<fbstring> vs{{"hello", "world!"}};
+//   EXPECT_EQ(vs.size(), 2u);
+// }