Is this behavior of vector::resize(size_type n) under C++11 and Boost.Container correct?
Not an answer, but a lengthy addendum to Howard’s: I use an allocator adapter that basically works the same as Howard’s allocator, but is safer since it only interposes on value-initialization and not all initializations, it correctly default-initializes. // Allocator adaptor that interposes construct() calls to // convert value initialization into default initialization. template <typename … Read more