forked from boostorg/unordered
Fix erroneous usage of table::hash()
impl which implicitly copy-constructs the const_key_type
This commit is contained in:
@ -4064,7 +4064,7 @@ namespace boost {
|
|||||||
if (!this->size_)
|
if (!this->size_)
|
||||||
return 0;
|
return 0;
|
||||||
|
|
||||||
std::size_t key_hash = this->hash(k);
|
std::size_t key_hash = policy::apply_hash(this->hash_function(), k);
|
||||||
std::size_t bucket_index = this->hash_to_bucket(key_hash);
|
std::size_t bucket_index = this->hash_to_bucket(key_hash);
|
||||||
|
|
||||||
link_pointer prev =
|
link_pointer prev =
|
||||||
|
Reference in New Issue
Block a user