Update STL_Extension/include/CGAL/unordered_flat_map.h

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
This commit is contained in:
Laurent Rineau 2025-10-31 15:40:22 +01:00 committed by GitHub
parent 7f4703e248
commit f508d6fe1d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 4 additions and 2 deletions

View File

@ -45,8 +45,10 @@ namespace CGAL {
struct Has_hash_value : std::false_type {};
template <typename T>
struct Has_hash_value<T, std::void_t<decltype(hash_value(std::declval<T>()))>>
: std::is_convertible<decltype(hash_value(std::declval<T>())), std::size_t>
using hash_value_type = decltype(hash_value(std::declval<T>()));
template <typename T>
struct Has_hash_value<T, std::void_t<hash_value_type<T>>>
: std::is_convertible<hash_value_type<T>, std::size_t>
{};
}