[ptr_container] ptr_vector and ptr_circullar_buffer don't initialize PODs

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
5595
Age (days ago)
5595
Last active (days ago)
0 comments
1 participants
participants (1)
-
Roman Perepelitsa