From 0c98cd8eee86976f16f6ac92052608dcf4d79de5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Loriot?= Date: Wed, 22 Apr 2020 16:51:35 +0200 Subject: [PATCH] fix no-thread --- AABB_tree/include/CGAL/AABB_tree.h | 2 +- Polygon_mesh_processing/include/CGAL/Side_of_triangle_mesh.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/AABB_tree/include/CGAL/AABB_tree.h b/AABB_tree/include/CGAL/AABB_tree.h index dda850e3538..0fe6f6bf5de 100644 --- a/AABB_tree/include/CGAL/AABB_tree.h +++ b/AABB_tree/include/CGAL/AABB_tree.h @@ -603,7 +603,7 @@ public: std::atomic m_atomic_search_tree_constructed; #else bool m_need_build = false; - bool m_search_tree_constructed = false; + mutable bool m_search_tree_constructed = false; #endif private: diff --git a/Polygon_mesh_processing/include/CGAL/Side_of_triangle_mesh.h b/Polygon_mesh_processing/include/CGAL/Side_of_triangle_mesh.h index 416f3638a80..f2ea731ec1a 100644 --- a/Polygon_mesh_processing/include/CGAL/Side_of_triangle_mesh.h +++ b/Polygon_mesh_processing/include/CGAL/Side_of_triangle_mesh.h @@ -187,7 +187,7 @@ public: #ifdef CGAL_HAS_THREADS delete atomic_tree_ptr.load(); #else - delete tree_ptr.get(); + delete tree_ptr; #endif }