From 8b464899d741ec4bfc59cd57729d2d688de87752 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mael=20Rouxel-Labb=C3=A9?= Date: Fri, 21 Oct 2016 12:13:16 +0200 Subject: [PATCH] Added boost::hash overloads for the other Surface_mesh index-based classes --- .../include/CGAL/Surface_mesh/Surface_mesh.h | 24 +++++++++++++++++++ 1 file changed, 24 insertions(+) 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 */