Try to find the code generating __gnu_cxx::recursive_init_error in header only mode.

This commit is contained in:
Guillaume Damiand 2016-06-02 11:33:03 +02:00
parent b507b12d4f
commit 2a41a1a9cd
1 changed files with 5 additions and 0 deletions

View File

@ -47,9 +47,14 @@ Random( )
std::time( &s); std::time( &s);
seed = (unsigned int)s; seed = (unsigned int)s;
#if defined( CGAL_TEST_SUITE ) || defined( CGAL_PRINT_SEED ) #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()){ if(this == & get_default_random()){
std::cerr << "CGAL::get_default_random()::get_seed() = " << seed << std::endl; std::cerr << "CGAL::get_default_random()::get_seed() = " << seed << std::endl;
} }
*/
#endif #endif
// initialize random numbers generator // initialize random numbers generator
rng.seed(static_cast<boost::int32_t>(seed)); rng.seed(static_cast<boost::int32_t>(seed));