mirror of https://github.com/CGAL/cgal
create an object as otherwise it looks like a function pointer
This commit is contained in:
parent
2cfd132227
commit
e3634a3537
|
|
@ -237,7 +237,8 @@ public:
|
||||||
inline Random& get_default_random()
|
inline Random& get_default_random()
|
||||||
{
|
{
|
||||||
#if (defined( CGAL_TEST_SUITE ) || defined( CGAL_PRINT_SEED )) && !defined(CGAL_HEADER_ONLY)
|
#if (defined( CGAL_TEST_SUITE ) || defined( CGAL_PRINT_SEED )) && !defined(CGAL_HEADER_ONLY)
|
||||||
CGAL_STATIC_THREAD_LOCAL_VARIABLE(Random, default_random, internal::Random_print_seed() );
|
internal::Random_print_seed rps;
|
||||||
|
CGAL_STATIC_THREAD_LOCAL_VARIABLE(Random, default_random, rps);
|
||||||
#else
|
#else
|
||||||
CGAL_STATIC_THREAD_LOCAL_VARIABLE_0(Random, default_random);
|
CGAL_STATIC_THREAD_LOCAL_VARIABLE_0(Random, default_random);
|
||||||
#endif
|
#endif
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue