From 705e69aefdbd8f56e1779cf418b59bf16cec7a5a Mon Sep 17 00:00:00 2001 From: Daniel James Date: Thu, 5 Oct 2017 10:54:23 +0100 Subject: [PATCH] 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. --- include/boost/unordered/detail/implementation.hpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/include/boost/unordered/detail/implementation.hpp b/include/boost/unordered/detail/implementation.hpp index 51bbfdaa..7db2d341 100644 --- a/include/boost/unordered/detail/implementation.hpp +++ b/include/boost/unordered/detail/implementation.hpp @@ -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_) {