From 597a4f12834e0338023d69821addf65a9f3e8381 Mon Sep 17 00:00:00 2001 From: Laurent Rineau Date: Fri, 10 Jan 2020 15:20:56 +0100 Subject: [PATCH] Bug in the demo (mesh_3_plugin) --- Mesh_3/include/CGAL/Mesh_3/Mesher_3.h | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/Mesh_3/include/CGAL/Mesh_3/Mesher_3.h b/Mesh_3/include/CGAL/Mesh_3/Mesher_3.h index 77c36e34edd..50a8275aa61 100644 --- a/Mesh_3/include/CGAL/Mesh_3/Mesher_3.h +++ b/Mesh_3/include/CGAL/Mesh_3/Mesher_3.h @@ -826,7 +826,13 @@ status() const if(boost::is_convertible::value) { const WorksharingDataStructureType* ws_ds = this->get_worksharing_data_structure(); - return Mesher_status(approximate_number_of_vertices(Concurrency_tag()), + return Mesher_status( +# if CGAL_CONCURRENT_COMPACT_CONTAINER_APPROXIMATE_SIZE + approximate_number_of_vertices(Concurrency_tag()), +#else + // not thread-safe, but that is not important + approximate_number_of_vertices(CGAL::Sequential_tag()), +#endif 0, ws_ds->approximate_number_of_enqueued_element()); }