diff --git a/Mesh_3/include/CGAL/refine_mesh_3.h b/Mesh_3/include/CGAL/refine_mesh_3.h index 115affd366b..fb0d4351fdc 100644 --- a/Mesh_3/include/CGAL/refine_mesh_3.h +++ b/Mesh_3/include/CGAL/refine_mesh_3.h @@ -203,6 +203,11 @@ namespace parameters { // Various Mesh_3 option struct Mesh_3_options { +#ifndef CGAL_NO_ATOMIC + typedef CGAL::cpp11::atomic* Pointer_to_stop_atomic_boolean_t; +#else + typedef bool* Pointer_to_stop_atomic_boolean_t; +#endif Mesh_3_options() : dump_after_init_prefix() , dump_after_refine_surface_prefix() @@ -230,7 +235,7 @@ namespace parameters { std::size_t maximal_number_of_vertices; Mesh_error_code* pointer_to_error_code; #ifndef CGAL_NO_ATOMIC - CGAL::cpp11::atomic* pointer_to_stop_atomic_boolean; + Pointer_to_stop_atomic_boolean_t pointer_to_stop_atomic_boolean; #endif }; // end struct Mesh_3_options @@ -375,9 +380,7 @@ CGAL_IGNORE_BOOST_PARAMETER_NAME_WARNINGS (number_of_initial_points_, (int), -1) (maximal_number_of_vertices_, (std::size_t), 0) (pointer_to_error_code_, (Mesh_error_code*), ((Mesh_error_code*)0)) -#ifndef CGAL_NO_ATOMIC - (pointer_to_stop_atomic_boolean_, (CGAL::cpp11::atomic*), ((CGAL::cpp11::atomic*)0)) -#endif + (pointer_to_stop_atomic_boolean_, (internal::Mesh_3_options::Pointer_to_stop_atomic_boolean_t), ((internal::Mesh_3_options::Pointer_to_stop_atomic_boolean_t)0)) ) ) {