diff --git a/Polygon_mesh_processing/examples/Polygon_mesh_processing/repair_polygon_soup_example.cpp b/Polygon_mesh_processing/examples/Polygon_mesh_processing/repair_polygon_soup_example.cpp index 66b6e6b9286..484abcdefae 100644 --- a/Polygon_mesh_processing/examples/Polygon_mesh_processing/repair_polygon_soup_example.cpp +++ b/Polygon_mesh_processing/examples/Polygon_mesh_processing/repair_polygon_soup_example.cpp @@ -25,14 +25,14 @@ struct Array_traits { struct Equal_3 { - bool operator()(const Custom_point& p, const Custom_point& q) { + bool operator()(const Custom_point& p, const Custom_point& q) const { return (p == q); } }; struct Less_xyz_3 { - bool operator()(const Custom_point& p, const Custom_point& q) { + bool operator()(const Custom_point& p, const Custom_point& q) const { return std::lexicographical_compare(p.begin(), p.end(), q.begin(), q.end()); } };