Introduce non-throwing try* methods for IPAddress{,V4,V6}.
[folly.git] / folly / test / small_vector_test.cpp
index bae23e95286815b7ffc2c8fead6d243007fad1d6..618af54e9cce1fc37534a972d80b7be42f1c349c 100644 (file)
@@ -176,7 +176,7 @@ struct TestBasicGuarantee {
     std::unique_ptr<folly::small_vector<Thrower,3> > workingVec;
     for (int counter = 1; !done; ++counter) {
       throwCounter = 1000;
-      workingVec.reset(new folly::small_vector<Thrower,3>(vec));
+      workingVec = std::make_unique<folly::small_vector<Thrower, 3>>(vec);
       throwCounter = counter;
       EXPECT_EQ(Thrower::alive, prepopulate * 2);
       try {
@@ -198,7 +198,7 @@ struct TestBasicGuarantee {
   }
 };
 
-}
+} // namespace
 
 TEST(small_vector, BasicGuarantee) {
   for (int prepop = 1; prepop < 30; ++prepop) {
@@ -942,7 +942,7 @@ class Counter {
     return *this;
   }
 };
-}
+} // namespace
 
 TEST(small_vector, EmplaceBackEfficiency) {
   small_vector<Counter, 2> test;