Skip to content

Commit

Permalink
Check that insertion was in last position
Browse files Browse the repository at this point in the history
  • Loading branch information
dalg24 committed Aug 5, 2024
1 parent 38ec5a6 commit 253e46e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion debugging/vov-bug-finder/kp_view_of_views_bug_finder.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,8 @@ class {
public:
std::mutex mutex;
uint64_t push(std::string s) {
map_.emplace_hint(map_.end(), count_, std::move(s));
auto it = map_.emplace_hint(map_.end(), count_, std::move(s));
assert(++it == map_.end());
return count_++;
}
void pop(uint64_t x) {
Expand Down

0 comments on commit 253e46e

Please sign in to comment.