CGAL / cgal

The public CGAL repository, see the README below
https://github.com/CGAL/cgal#readme
Other
4.99k stars 1.39k forks source link

stl hash missing for CGAL::internal::OMesh_edge #5493

Closed unclejimbo closed 3 years ago

unclejimbo commented 3 years ago

Issue Details

For OMesh_edge defined here https://github.com/CGAL/cgal/blob/1a040c8552c6f68c3ed57f918634d30e3416517e/STL_Extension/include/CGAL/hash_openmesh.h#L18-L22

partial specialization of hash is missing in the stl namespace

hash_value here only works for boost https://github.com/CGAL/cgal/blob/1a040c8552c6f68c3ed57f918634d30e3416517e/STL_Extension/include/CGAL/hash_openmesh.h#L70-L74

Source Code

The following code won't compile when Mesh is OpenMesh type

template<typename Mesh>
std::unordered_set<typename boost::graph_traits<Mesh>::edge_descriptor> eset;

Environment

afabri commented 3 years ago

I confirm and work on it.