From 4438c8651cc46baed38bfe2b590631b40071a0a3 Mon Sep 17 00:00:00 2001 From: Andreas Fabri Date: Tue, 12 May 2015 19:33:57 +0200 Subject: [PATCH] Add operator< for two OpenMesh edges --- .../CGAL/boost/graph/graph_traits_PolyMesh_ArrayKernelT.h | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/BGL/include/CGAL/boost/graph/graph_traits_PolyMesh_ArrayKernelT.h b/BGL/include/CGAL/boost/graph/graph_traits_PolyMesh_ArrayKernelT.h index ddc3f15289b..997e101d9e5 100644 --- a/BGL/include/CGAL/boost/graph/graph_traits_PolyMesh_ArrayKernelT.h +++ b/BGL/include/CGAL/boost/graph/graph_traits_PolyMesh_ArrayKernelT.h @@ -60,6 +60,11 @@ public: } } + bool operator<(const OMesh_edge& other) const + { + return this->idx() < other.idx(); + } + bool operator!=(const OMesh_edge& other) { return !(*this == other); }