From 01decbb6a6536a412bff710c36cdeb0ad08d8a14 Mon Sep 17 00:00:00 2001 From: Guillaume Damiand Date: Tue, 26 Dec 2023 10:51:38 +0100 Subject: [PATCH] SMT draw: Cannot use directly initializer list with variadic template. --- .../examples/Surface_mesh_topology/edgewidth_lcc.cpp | 6 +++++- .../Surface_mesh_topology/edgewidth_surface_mesh.cpp | 6 +++++- .../examples/Surface_mesh_topology/facewidth.cpp | 2 ++ .../examples/Surface_mesh_topology/open_path_homotopy.cpp | 5 ++++- .../Surface_mesh_topology/path_homotopy_double_torus.cpp | 5 ++++- .../examples/Surface_mesh_topology/path_homotopy_torus.cpp | 5 ++++- .../path_homotopy_with_sm_and_polyhedron.cpp | 5 ++++- .../Surface_mesh_topology/path_simplicity_double_torus.cpp | 5 ++++- .../path_simplicity_double_torus_2.cpp | 5 ++++- .../shortest_noncontractible_cycle.cpp | 6 +++++- .../shortest_noncontractible_cycle_2.cpp | 6 +++++- 11 files changed, 46 insertions(+), 10 deletions(-) diff --git a/Surface_mesh_topology/examples/Surface_mesh_topology/edgewidth_lcc.cpp b/Surface_mesh_topology/examples/Surface_mesh_topology/edgewidth_lcc.cpp index 5f6692f4f83..8e492372e9c 100644 --- a/Surface_mesh_topology/examples/Surface_mesh_topology/edgewidth_lcc.cpp +++ b/Surface_mesh_topology/examples/Surface_mesh_topology/edgewidth_lcc.cpp @@ -48,7 +48,11 @@ int main(int argc, char* argv[]) std::cout<<"Cycle 1 (pink): "; display_cycle_info(lcc, cycle1); std::cout<<"Cycle 2 (green): "; display_cycle_info(lcc, cycle2); - if (draw) { CGAL::draw(lcc, {cycle1, cycle2}); } + if (draw) + { + auto cycles={cycle1, cycle2}; + CGAL::draw(lcc, cycles); + } return EXIT_SUCCESS; } diff --git a/Surface_mesh_topology/examples/Surface_mesh_topology/edgewidth_surface_mesh.cpp b/Surface_mesh_topology/examples/Surface_mesh_topology/edgewidth_surface_mesh.cpp index a6ec92e76a7..5fb35c3c070 100644 --- a/Surface_mesh_topology/examples/Surface_mesh_topology/edgewidth_surface_mesh.cpp +++ b/Surface_mesh_topology/examples/Surface_mesh_topology/edgewidth_surface_mesh.cpp @@ -51,7 +51,11 @@ int main(int argc, char* argv[]) std::cout<<"Cycle 1 (pink): "; display_cycle_info(sm, cycle1); std::cout<<"Cycle 2 (green): "; display_cycle_info(sm, cycle2); - if (draw) { CGAL::draw(sm, {cycle1, cycle2}); } + if (draw) + { + auto cycles={cycle1, cycle2}; + CGAL::draw(sm, cycles); + } return EXIT_SUCCESS; } diff --git a/Surface_mesh_topology/examples/Surface_mesh_topology/facewidth.cpp b/Surface_mesh_topology/examples/Surface_mesh_topology/facewidth.cpp index 43f4b2d6a99..e35579bd8ee 100644 --- a/Surface_mesh_topology/examples/Surface_mesh_topology/facewidth.cpp +++ b/Surface_mesh_topology/examples/Surface_mesh_topology/facewidth.cpp @@ -35,7 +35,9 @@ int main(int argc, char* argv[]) { std::cout<<" Number of faces: "<