From 6c966df862c97a38f98eba94839abd425b83c831 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Loriot?= Date: Mon, 26 Oct 2020 14:29:21 +0100 Subject: [PATCH] fix return type --- .../CGAL/Polygon_mesh_processing/stitch_borders.h | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/Polygon_mesh_processing/include/CGAL/Polygon_mesh_processing/stitch_borders.h b/Polygon_mesh_processing/include/CGAL/Polygon_mesh_processing/stitch_borders.h index d54a1f070e0..153f371f1e9 100644 --- a/Polygon_mesh_processing/include/CGAL/Polygon_mesh_processing/stitch_borders.h +++ b/Polygon_mesh_processing/include/CGAL/Polygon_mesh_processing/stitch_borders.h @@ -658,10 +658,12 @@ void run_stitch_borders(PolygonMesh& pmesh, template -HalfedgePairsRange filter_stitchable_pairs(PolygonMesh& pmesh, - const HalfedgePairsRange& to_stitch, - Uf_vertices& uf_vertices, - Uf_handles& uf_handles) +std::vector< std::pair::halfedge_descriptor, + typename boost::graph_traits::halfedge_descriptor> > +filter_stitchable_pairs(PolygonMesh& pmesh, + const HalfedgePairsRange& to_stitch, + Uf_vertices& uf_vertices, + Uf_handles& uf_handles) { typedef typename boost::graph_traits::vertex_descriptor vertex_descriptor; typedef typename boost::graph_traits::halfedge_descriptor halfedge_descriptor; @@ -782,7 +784,7 @@ HalfedgePairsRange filter_stitchable_pairs(PolygonMesh& pmesh, } else { - return to_stitch; + return std::vector(to_stitch.begin(), to_stitch.end()); } }