Skip to content

Commit a668888

Browse files
Bugfix: Rectify curr_ptr after erase item
1 parent 069b131 commit a668888

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

include/fast_io_dsal/impl/vector.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -983,7 +983,7 @@ class vector FAST_IO_TRIVIALLY_RELOCATABLE_IF_ELIGIBLE
983983
::std::destroy_at(it);
984984
}
985985
::fast_io::freestanding::uninitialized_relocate(it + 1, lastele, it);
986-
imp.curr_ptr = lastele;
986+
imp.curr_ptr = lastele - 1;
987987
return it;
988988
}
989989

0 commit comments

Comments
 (0)