mirror of https://github.com/CGAL/cgal
yet another CGAL_STATIC_THREAD_LOCAL_VARIABLE
This commit is contained in:
parent
faa2866763
commit
036dfd7adb
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue