From 836f067b8dc167ea4166b7d8af5c56aa54c27b78 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Loriot?= Date: Tue, 19 Sep 2017 14:21:23 +0200 Subject: [PATCH] remove default value hidding the copy-constructor the random generator was replaced at each copy --- Generator/include/CGAL/point_generators_2.h | 2 +- Generator/include/CGAL/point_generators_3.h | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Generator/include/CGAL/point_generators_2.h b/Generator/include/CGAL/point_generators_2.h index 25b94a2e0d7..73effe1d163 100644 --- a/Generator/include/CGAL/point_generators_2.h +++ b/Generator/include/CGAL/point_generators_2.h @@ -508,7 +508,7 @@ public: typedef Random_points_in_triangle_2 This; typedef typename Kernel_traits

::Kernel::Triangle_2 Triangle_2; Random_points_in_triangle_2() {} - Random_points_in_triangle_2( const This& x,Random& rnd = get_default_random()) + Random_points_in_triangle_2( const This& x,Random& rnd) : Random_generator_base

( 1, rnd ),_p(x._p),_q(x._q),_r(x._r) { generate_point(); } diff --git a/Generator/include/CGAL/point_generators_3.h b/Generator/include/CGAL/point_generators_3.h index 31d6dee097b..8a6f4c08748 100644 --- a/Generator/include/CGAL/point_generators_3.h +++ b/Generator/include/CGAL/point_generators_3.h @@ -208,7 +208,7 @@ public: typedef Random_points_in_triangle_3 This; typedef typename Kernel_traits

::Kernel::Triangle_3 Triangle_3; Random_points_in_triangle_3() {} - Random_points_in_triangle_3( const This& x,Random& rnd = get_default_random()) + Random_points_in_triangle_3( const This& x,Random& rnd) : Random_generator_base

( 1, rnd ),_p(x._p),_q(x._q),_r(x._r) { generate_point(); } @@ -325,7 +325,7 @@ public: typedef Random_points_in_tetrahedron_3 This; typedef typename Kernel_traits

::Kernel::Tetrahedron_3 Tetrahedron_3; Random_points_in_tetrahedron_3() {} - Random_points_in_tetrahedron_3( const This& x,Random& rnd = get_default_random()) + Random_points_in_tetrahedron_3( const This& x,Random& rnd) : Random_generator_base

( 1, rnd ),_p(x._p),_q(x._q),_r(x._r),_s(x._s) { generate_point(); }