id summary reporter owner description type status milestone component version severity resolution keywords cc 13533 Boost vector resize causes assert(false) Paul Calabrese Ion Gaztañaga " When using a boost vector with a custom allocator, a resize that results in memory growth in both directions causes an assert(false) in insert_value_initialized_n_proxy::copy_n_and_update(). The code in question is contained in boost/containers/detail/advanced_insert_int.hpp. I have attached a test case that results in an assert. The test case uses a custom allocator, but the problem was originally encountered using the boost shared memory allocator. The following patch appears to correct the behavior: {{{ 128,129c128,129 < void copy_n_and_update(Allocator &, Iterator, size_type) const < { BOOST_ASSERT(false); } --- > void copy_n_and_update(Allocator &a, Iterator p, size_type n) const > { boost::container::uninitialized_value_init_alloc_n(a, n, p); } 142,143c142,143 < void copy_n_and_update(Allocator &, Iterator, size_type) const < { BOOST_ASSERT(false); } --- > void copy_n_and_update(Allocator & a, Iterator n, size_type p) const > { boost::container::uninitialized_default_init_alloc_n(a, n, p); } }}}" Bugs closed To Be Determined container Boost 1.67.0 Problem fixed