Error: d:\dev-tools\eigen\eigen\src/Core/MathFunctions.h(1090): error C2794: 'type' : is not a member of any direct or indirect base class of 'std::enable_if<false,T>' 1> with 1> [ 1> T=float 1> ] 1>d:\dev-tools\eigen\eigen\src/Core/MathFunctions.h(1094): error C2794: 'type' : is not a member of any direct or indirect base class of 'std::enable_if<false,double>' 1>d:\dev-tools\eigen\eigen\src/Core/MathFunctions.h(1100): error C2794: 'type' : is not a member of any direct or indirect base class of 'std::enable_if<false,T>' 1> with 1> [ 1> T=float 1> ] 1>d:\dev-tools\eigen\eigen\src/Core/MathFunctions.h(1106): error C2794: 'type' : is not a member of any direct or indirect base class of 'std::enable_if<false,double>' Windows 10 x64 Visual Studio 2013 CUDA 8
Possible solution is to replace template<typename T> EIGEN_DEVICE_FUNC EIGEN_ALWAYS_INLINE typename Eigen::internal::enable_if<!(NumTraits<T>::IsSigned || NumTraits<T>::isComplex), typename NumTraits<T>::Real>::type abs(const T &x) { return x; } with template<typename T, typename = typename Eigen::internal::enable_if<!(NumTraits<T>::IsSigned || NumTraits<T>::isComplex)>::type> EIGEN_DEVICE_FUNC EIGEN_ALWAYS_INLINE typename NumTraits<T>::Real abs(const T &x) { return x; }
-- GitLab Migration Automatic Message -- This bug has been migrated to gitlab.com's GitLab instance and has been closed from further activity. You can subscribe and participate further through the new bug through this link to our GitLab instance: https://gitlab.com/libeigen/eigen/issues/1450.