From 7f3b17e4031c6b921648906f43432ff728bb772d Mon Sep 17 00:00:00 2001 From: Gael Guennebaud Date: Thu, 13 Sep 2018 18:15:07 +0200 Subject: [PATCH] MSVC 2015 supports c++11 thread-local-storage --- unsupported/Eigen/CXX11/src/ThreadPool/ThreadLocal.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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