From b984dce2226f9e341cfb2fa72934666a9e871f86 Mon Sep 17 00:00:00 2001 From: Andreas Fabri Date: Fri, 11 May 2018 08:32:11 +0100 Subject: [PATCH 1/2] Address all remaining points of issue #1384, but the renderer --- .../include/CGAL/Arr_circle_segment_traits_2.h | 7 ++++++- Arrangement_on_surface_2/include/CGAL/Arr_conic_traits_2.h | 7 ++++++- 2 files changed, 12 insertions(+), 2 deletions(-) diff --git a/Arrangement_on_surface_2/include/CGAL/Arr_circle_segment_traits_2.h b/Arrangement_on_surface_2/include/CGAL/Arr_circle_segment_traits_2.h index bdbd53d20a4..6a45bafe0c9 100644 --- a/Arrangement_on_surface_2/include/CGAL/Arr_circle_segment_traits_2.h +++ b/Arrangement_on_surface_2/include/CGAL/Arr_circle_segment_traits_2.h @@ -31,6 +31,7 @@ * The header file for the Arr_circle_segment_traits_2 class. */ +#include #include #include #include @@ -84,7 +85,11 @@ public: /*! Get the next curve index. */ static unsigned int get_index () { - static unsigned int index = 0; +#ifdef CGAL_NO_ATOMIC + static unsigned int index; +#else + static CGAL::cpp11::atomic index; +#endif return (++index); } diff --git a/Arrangement_on_surface_2/include/CGAL/Arr_conic_traits_2.h b/Arrangement_on_surface_2/include/CGAL/Arr_conic_traits_2.h index 69e7e29b755..d84c112662c 100644 --- a/Arrangement_on_surface_2/include/CGAL/Arr_conic_traits_2.h +++ b/Arrangement_on_surface_2/include/CGAL/Arr_conic_traits_2.h @@ -31,6 +31,7 @@ * The conic traits-class for the arrangement package. */ +#include #include #include #include @@ -114,7 +115,11 @@ public: /*! Get the next conic index. */ static unsigned int get_index () { - static unsigned int index = 0; +#ifdef CGAL_NO_ATOMIC + static unsigned int index; +#else + static CGAL::cpp11::atomic index; +#endif return (++index); } From 4ceeb920207faeb0488c85edaa01e368f04dd9e9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Loriot?= Date: Wed, 16 May 2018 08:51:03 +0200 Subject: [PATCH 2/2] add missing semicolon --- STL_Extension/include/CGAL/internal/boost/array_binary_tree.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/STL_Extension/include/CGAL/internal/boost/array_binary_tree.hpp b/STL_Extension/include/CGAL/internal/boost/array_binary_tree.hpp index dc9e8a6b4e5..e2d5ebd2f66 100644 --- a/STL_Extension/include/CGAL/internal/boost/array_binary_tree.hpp +++ b/STL_Extension/include/CGAL/internal/boost/array_binary_tree.hpp @@ -55,7 +55,7 @@ public: { // replace with iterator_adaptor implementation -JGS typedef std::forward_iterator_tag Category; typedef ArrayBinaryTreeNode value_type; - typedef size_type difference_type + typedef size_type difference_type; typedef ArrayBinaryTreeNode* Pointer; typedef ArrayBinaryTreeNode& Reference;