diff --git a/STL_Extension/include/CGAL/unordered_flat_map.h b/STL_Extension/include/CGAL/unordered_flat_map.h index af55f9975bf..74e09b967c6 100644 --- a/STL_Extension/include/CGAL/unordered_flat_map.h +++ b/STL_Extension/include/CGAL/unordered_flat_map.h @@ -45,8 +45,10 @@ namespace CGAL { struct Has_hash_value : std::false_type {}; template - struct Has_hash_value()))>> - : std::is_convertible())), std::size_t> + using hash_value_type = decltype(hash_value(std::declval())); + template + struct Has_hash_value>> + : std::is_convertible, std::size_t> {}; }