If you have pointers to vector-elements and you have not reserved space before push_back(), those pointer could get invalid, when the vector resizes and when it moves its element-addresses to more space.