diff options
author | Gael Guennebaud <g.gael@free.fr> | 2018-09-13 18:15:07 +0200 |
---|---|---|
committer | Gael Guennebaud <g.gael@free.fr> | 2018-09-13 18:15:07 +0200 |
commit | 7f3b17e4031c6b921648906f43432ff728bb772d (patch) | |
tree | bc048f9a24fd7ba86ce2f3573ebe6a1f5b8177ce /unsupported/Eigen/CXX11 | |
parent | c64fe9ea1f9f5943864cd9ca27d3fcca07453f82 (diff) |
MSVC 2015 supports c++11 thread-local-storage
Diffstat (limited to 'unsupported/Eigen/CXX11')
-rw-r--r-- | unsupported/Eigen/CXX11/src/ThreadPool/ThreadLocal.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/unsupported/Eigen/CXX11/src/ThreadPool/ThreadLocal.h b/unsupported/Eigen/CXX11/src/ThreadPool/ThreadLocal.h index a41731c34..7229839ac 100644 --- a/unsupported/Eigen/CXX11/src/ThreadPool/ThreadLocal.h +++ b/unsupported/Eigen/CXX11/src/ThreadPool/ThreadLocal.h @@ -12,7 +12,8 @@ #if EIGEN_MAX_CPP_VER >= 11 && \ ((EIGEN_COMP_GNUC && EIGEN_GNUC_AT_LEAST(4, 8)) || \ - __has_feature(cxx_thread_local)) + __has_feature(cxx_thread_local) || \ + (EIGEN_COMP_MSVC >= 1900) ) #define EIGEN_THREAD_LOCAL static thread_local #endif |