diff --git a/include/cuco/detail/static_map/static_map.inl b/include/cuco/detail/static_map/static_map.inl index 9249d4fa1..3322a4ae4 100644 --- a/include/cuco/detail/static_map/static_map.inl +++ b/include/cuco/detail/static_map/static_map.inl @@ -15,6 +15,7 @@ */ #include +#include #include #include #include @@ -564,7 +565,7 @@ auto static_mapempty_key_sentinel() == this->erased_key_sentinel() + return cuco::detail::bitwise_compare(this->empty_key_sentinel(), this->erased_key_sentinel()) ? ref_type{cuco::empty_key(this->empty_key_sentinel()), cuco::empty_value(this->empty_value_sentinel()), impl_->key_eq(), diff --git a/include/cuco/detail/static_set/static_set.inl b/include/cuco/detail/static_set/static_set.inl index 6ee49ce02..5063642e1 100644 --- a/include/cuco/detail/static_set/static_set.inl +++ b/include/cuco/detail/static_set/static_set.inl @@ -15,6 +15,7 @@ */ #include +#include #include #include #include @@ -467,7 +468,7 @@ auto static_set Operators...) const noexcept { static_assert(sizeof...(Operators), "No operators specified"); - return this->empty_key_sentinel() == this->erased_key_sentinel() + return cuco::detail::bitwise_compare(this->empty_key_sentinel(), this->erased_key_sentinel()) ? ref_type{cuco::empty_key(this->empty_key_sentinel()), impl_->key_eq(), impl_->probing_scheme(),