From e3634a35375eb00d38efe78534cc8e4f787257c8 Mon Sep 17 00:00:00 2001 From: Andreas Fabri Date: Fri, 4 Nov 2016 17:36:56 +0100 Subject: [PATCH] create an object as otherwise it looks like a function pointer --- Random_numbers/include/CGAL/Random.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Random_numbers/include/CGAL/Random.h b/Random_numbers/include/CGAL/Random.h index f86b7577ed2..3c14d16335e 100644 --- a/Random_numbers/include/CGAL/Random.h +++ b/Random_numbers/include/CGAL/Random.h @@ -237,7 +237,8 @@ public: inline Random& get_default_random() { #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 CGAL_STATIC_THREAD_LOCAL_VARIABLE_0(Random, default_random); #endif