mirror of
https://gitlab.com/libeigen/eigen.git
synced 2025-08-13 04:09:10 +08:00
MSVC 2015 has all we want about c++11 and MSVC 2017 fails on binder1st/binder2nd
This commit is contained in:
parent
f3f026c9aa
commit
e383d6159a
@ -72,7 +72,7 @@ template<typename T>
|
|||||||
struct functor_traits<std::not_equal_to<T> >
|
struct functor_traits<std::not_equal_to<T> >
|
||||||
{ enum { Cost = 1, PacketAccess = false }; };
|
{ enum { Cost = 1, PacketAccess = false }; };
|
||||||
|
|
||||||
#if(__cplusplus < 201103L)
|
#if (__cplusplus < 201103L) && (EIGEN_COMP_MSVC <= 1900)
|
||||||
// std::binder* are deprecated since c++11 and will be removed in c++17
|
// std::binder* are deprecated since c++11 and will be removed in c++17
|
||||||
template<typename T>
|
template<typename T>
|
||||||
struct functor_traits<std::binder2nd<T> >
|
struct functor_traits<std::binder2nd<T> >
|
||||||
|
@ -356,7 +356,7 @@
|
|||||||
#define EIGEN_MAX_CPP_VER 99
|
#define EIGEN_MAX_CPP_VER 99
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if EIGEN_MAX_CPP_VER>=11 && defined(__cplusplus) && (__cplusplus >= 201103L)
|
#if EIGEN_MAX_CPP_VER>=11 && (defined(__cplusplus) && (__cplusplus >= 201103L) || EIGEN_COMP_MSVC >= 1900)
|
||||||
#define EIGEN_HAS_CXX11 1
|
#define EIGEN_HAS_CXX11 1
|
||||||
#else
|
#else
|
||||||
#define EIGEN_HAS_CXX11 0
|
#define EIGEN_HAS_CXX11 0
|
||||||
|
Loading…
x
Reference in New Issue
Block a user