diff --git a/templates/vector.tpp b/templates/vector.tpp index ef64107..ff6cabb 100644 --- a/templates/vector.tpp +++ b/templates/vector.tpp @@ -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);