yet another CGAL_STATIC_THREAD_LOCAL_VARIABLE

This commit is contained in:
Andreas Fabri 2018-02-21 14:17:10 +00:00
parent faa2866763
commit 036dfd7adb
1 changed files with 2 additions and 1 deletions

View File

@ -23,6 +23,7 @@
#define CGAL_CONSTANT_H
#include <CGAL/config.h>
#include <CGAL/tss.h>
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;
}