diff --git a/utils/chunked_vector.hh b/utils/chunked_vector.hh index 2018999356..896e56eb97 100644 --- a/utils/chunked_vector.hh +++ b/utils/chunked_vector.hh @@ -139,14 +139,10 @@ public: } void push_back(const T& x) { - reserve_for_push_back(); - new (addr(_size)) T(x); - ++_size; + emplace_back(x); } void push_back(T&& x) { - reserve_for_push_back(); - new (addr(_size)) T(std::move(x)); - ++_size; + emplace_back(std::move(x)); } template T& emplace_back(Args&&... args) {