Always call set_first_in_group

Probably don't need to, as we're using 0 for the first element in a group, but
it's quick so might as well.
This commit is contained in:
Daniel James
2017-10-05 10:54:23 +01:00
parent e58081f6dc
commit 705e69aefd

View File

@ -3524,9 +3524,8 @@ namespace boost {
std::size_t bucket_index = this->hash_to_bucket(key_hash);
bucket_pointer b = this->get_bucket(bucket_index);
// TODO: Do this need to set_first_in_group ?
n->bucket_info_ = bucket_index;
// n->set_first_in_group();
n->set_first_in_group();
if (!b->next_) {
link_pointer start_node = this->get_previous_start();
@ -4062,7 +4061,7 @@ namespace boost {
}
}
} else {
// n->set_first_in_group();
n->set_first_in_group();
bucket_pointer b = this->get_bucket(bucket_index);
if (!b->next_) {