From 036dfd7adb8a907150399b32f1e354b5e266abbc Mon Sep 17 00:00:00 2001 From: Andreas Fabri Date: Wed, 21 Feb 2018 14:17:10 +0000 Subject: [PATCH] yet another CGAL_STATIC_THREAD_LOCAL_VARIABLE --- Number_types/include/CGAL/constant.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Number_types/include/CGAL/constant.h b/Number_types/include/CGAL/constant.h index b47160ed63b..d692ac947fb 100644 --- a/Number_types/include/CGAL/constant.h +++ b/Number_types/include/CGAL/constant.h @@ -23,6 +23,7 @@ #define CGAL_CONSTANT_H #include +#include namespace CGAL { @@ -34,7 +35,7 @@ inline const T& constant() { - static const T t(i); + const CGAL_STATIC_THREAD_LOCAL_VARIABLE(T, t,i); return t; }