solved pbm in vector reserve
This commit is contained in:
@@ -158,7 +158,7 @@ VT_TPL void VT::
|
||||
tmp_ptr = _allocator.allocate(new_cap);
|
||||
|
||||
_mem_ptr = tmp_ptr;
|
||||
if (_mem_ptr)
|
||||
if (old_ptr)
|
||||
{
|
||||
_size = 0;
|
||||
assign(first, last);
|
||||
|
||||
Reference in New Issue
Block a user