solved pbm in vector reserve

This commit is contained in:
hugogogo
2022-06-17 10:46:21 +02:00
parent 64d87cb5d4
commit a939bfc66f

View File

@@ -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);