29 Oct
2009
29 Oct
'09
3:36 p.m.
ptr_vector<T>::resize creates new objects using 'new T' instead of 'new
T()', which results in uninitialized objects if T is a POD. For consistency
with STL containers (std::vector in particular) all PODs must be explicitly
initialized.
Test:
#include <cassert>
#include