From 2a41a1a9cd7134d37cb7540bd305507ab64d3fc8 Mon Sep 17 00:00:00 2001 From: Guillaume Damiand Date: Thu, 2 Jun 2016 11:33:03 +0200 Subject: [PATCH] Try to find the code generating __gnu_cxx::recursive_init_error in header only mode. --- Random_numbers/include/CGAL/Random_impl.h | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Random_numbers/include/CGAL/Random_impl.h b/Random_numbers/include/CGAL/Random_impl.h index cb97040d743..851a210b488 100644 --- a/Random_numbers/include/CGAL/Random_impl.h +++ b/Random_numbers/include/CGAL/Random_impl.h @@ -47,9 +47,14 @@ Random( ) std::time( &s); seed = (unsigned int)s; #if defined( CGAL_TEST_SUITE ) || defined( CGAL_PRINT_SEED ) + /* TODO Re-add this mechanism later + Test if this is the guilty code which generate __gnu_cxx::recursive_init_error + in header only mode. + if(this == & get_default_random()){ std::cerr << "CGAL::get_default_random()::get_seed() = " << seed << std::endl; } + */ #endif // initialize random numbers generator rng.seed(static_cast(seed));