From 06f84573bd0cf2c7c2e400523b08b2cb2da2df1c Mon Sep 17 00:00:00 2001 From: Jane Tournois Date: Tue, 7 Jun 2022 09:57:42 +0200 Subject: [PATCH] fix warning warning: moving a local object in a return statement prevents copy elision --- .../CGAL/Polygon_mesh_processing/surface_Delaunay_remeshing.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Mesh_3/include/CGAL/Polygon_mesh_processing/surface_Delaunay_remeshing.h b/Mesh_3/include/CGAL/Polygon_mesh_processing/surface_Delaunay_remeshing.h index d8b1ed0c03e..0db7d1631b8 100644 --- a/Mesh_3/include/CGAL/Polygon_mesh_processing/surface_Delaunay_remeshing.h +++ b/Mesh_3/include/CGAL/Polygon_mesh_processing/surface_Delaunay_remeshing.h @@ -295,7 +295,7 @@ TriangleMeshOut surface_Delaunay_remeshing(const TriangleMesh& tmesh TriangleMeshOut out; CGAL::facets_in_complex_3_to_triangle_mesh(c3t3, out); - return std::move(out); + return out; } } //end namespace Polygon_mesh_processing