mirror of
https://github.com/boostorg/container.git
synced 2025-08-02 05:54:28 +02:00
Merge branch 'fix-reserve-reuse' of https://github.com/palebedev/container into palebedev-fix-reserve-reuse
This commit is contained in:
@@ -2543,7 +2543,7 @@ class vector
|
||||
//buffer or expand the old one.
|
||||
bool same_buffer_start;
|
||||
size_type real_cap = 0;
|
||||
pointer reuse = 0;
|
||||
pointer reuse(this->m_holder.start());
|
||||
pointer const ret(this->m_holder.allocation_command(allocate_new | expand_fwd | expand_bwd, new_cap, real_cap = new_cap, reuse));
|
||||
|
||||
//Check for forward expansion
|
||||
|
Reference in New Issue
Block a user