diff --git a/src/util/vector.h b/src/util/vector.h index c21d33bab..03c450660 100644 --- a/src/util/vector.h +++ b/src/util/vector.h @@ -87,6 +87,7 @@ class vector { m_data = reinterpret_cast(mem + 2); if (!std::is_trivially_copyable::value) { static_assert(std::is_move_constructible::value, ""); + mem[1] = old_size; int i = 0; for (auto I = old_data; I != old_data + old_size; ++I) { new (&m_data[i++]) T(std::move(*I));