MSVC 2015 supports c++11 thread-local-storage

This commit is contained in:
Gael Guennebaud 2018-09-13 18:15:07 +02:00
parent c64fe9ea1f
commit 7f3b17e403

View File

@ -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