diff --git a/Surface_mesh/include/CGAL/Surface_mesh/Surface_mesh.h b/Surface_mesh/include/CGAL/Surface_mesh/Surface_mesh.h index db896daa486..0aa1e98a00f 100644 --- a/Surface_mesh/include/CGAL/Surface_mesh/Surface_mesh.h +++ b/Surface_mesh/include/CGAL/Surface_mesh/Surface_mesh.h @@ -2633,6 +2633,30 @@ namespace boost { } }; + template <> + struct hash { + std::size_t operator()(const CGAL::SM_Halfedge_index& i) const + { + return i; + } + }; + + template <> + struct hash { + std::size_t operator()(const CGAL::SM_Edge_index& i) const + { + return i; + } + }; + + template <> + struct hash { + std::size_t operator()(const CGAL::SM_Face_index& i) const + { + return i; + } + }; + } // namespace boost #endif /* CGAL_SURFACE_MESH_H */