Skip to content

Commit 5a3cd54

Browse files
committed
Update reverse_purge_hash_map copy constructor
I think reverse_purge_hash_map copy constructor should do this here, the original result is not being able to copy all the values
1 parent 49a35e5 commit 5a3cd54

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

fi/include/reverse_purge_hash_map_impl.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,8 +71,8 @@ states_(nullptr)
7171
if (other.states_[i] > 0) {
7272
new (&keys_[i]) K(other.keys_[i]);
7373
values_[i] = other.values_[i];
74+
if (--num == 0) break;
7475
}
75-
if (--num == 0) break;
7676
}
7777
}
7878
std::copy(other.states_, other.states_ + size, states_);

0 commit comments

Comments
 (0)