folly: small_vector: emplace_back for iterator constructor (compat with std::vector)
[folly.git] / folly / small_vector.h
index ca62f1471ad22fb2d27d551f4da4d9fc19e569ad..df237553e3f6c1e9d1cc8ecc815c6032b1f1bee2 100644 (file)
@@ -883,7 +883,7 @@ private:
       // With iterators that only allow a single pass, we can't really
       // do anything sane here.
       while (first != last) {
-        push_back(*first++);
+        emplace_back(*first++);
       }
       return;
     }