mirror of
https://github.com/boostorg/container.git
synced 2025-08-03 14:34:27 +02:00
Fixed bug in vector's constructor
[SVN r74155]
This commit is contained in:
@@ -459,6 +459,9 @@ class vector : private containers_detail::vector_alloc_holder<A>
|
|||||||
containers_detail::default_construct_aux_proxy<T, T*, size_type> proxy(n);
|
containers_detail::default_construct_aux_proxy<T, T*, size_type> proxy(n);
|
||||||
proxy.uninitialized_copy_all_to(new_mem);
|
proxy.uninitialized_copy_all_to(new_mem);
|
||||||
//All ok, commit
|
//All ok, commit
|
||||||
|
this->members_.m_start = ret.first;
|
||||||
|
this->members_.m_size = n;
|
||||||
|
this->members_.m_capacity = real_cap;
|
||||||
scoped_alloc.release();
|
scoped_alloc.release();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user