Skip to content

Commit

Permalink
Update std_vector_test.cc: remove resize (#204)
Browse files Browse the repository at this point in the history
  • Loading branch information
felixguendling authored Nov 17, 2023
1 parent f1a9c46 commit d03a415
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion test/std_vector_test.cc
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,6 @@ inline void deserialize(Ctx const& c, std::vector<T>* el) {
auto& vec = *new (static_cast<void*>(el)) std::vector<T>();

if (size != 0 && data != nullptr) {
vec.resize(static_cast<typename std::vector<T>::size_type>(size));
vec.insert(begin(vec), std::make_move_iterator(data),
std::make_move_iterator(data + size));
}
Expand Down

0 comments on commit d03a415

Please sign in to comment.