diff --git a/Hash_map/include/CGAL/Handle_hash_function.h b/Hash_map/include/CGAL/Handle_hash_function.h index 0ff617d8c05..7a77b9486ed 100644 --- a/Hash_map/include/CGAL/Handle_hash_function.h +++ b/Hash_map/include/CGAL/Handle_hash_function.h @@ -37,6 +37,16 @@ namespace internal{ sizeof( typename std::iterator_traits::value_type); } }; + + template + struct Hash_functor{ + std::size_t + operator()(const H* h) + { + return std::size_t(h) / + sizeof(H); + } + }; } }