You need to start lifetimes of individual array elements using placement-new (when resizing the vector), and destroy them when the vector dies (by manually calling the destructor).
↧