diff options
author | Rasmus Munk Larsen <rmlarsen@google.com> | 2019-06-05 16:42:27 -0700 |
---|---|---|
committer | Rasmus Munk Larsen <rmlarsen@google.com> | 2019-06-05 16:42:27 -0700 |
commit | 6d432eae5df88fe249d4db10c31647fa27872c8e (patch) | |
tree | 4e5d2e7f03b3fcf74b2f24077b80d05cd9a6d7aa /Eigen/src/Core | |
parent | f715f6e816d75077feb3aa682bec7ffee1b26207 (diff) |
Make is_valid_index_type return false for float and double when EIGEN_HAS_TYPE_TRAITS is off.
Diffstat (limited to 'Eigen/src/Core')
-rw-r--r-- | Eigen/src/Core/util/XprHelper.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Eigen/src/Core/util/XprHelper.h b/Eigen/src/Core/util/XprHelper.h index bbad66d33..9568b87b1 100644 --- a/Eigen/src/Core/util/XprHelper.h +++ b/Eigen/src/Core/util/XprHelper.h @@ -44,7 +44,7 @@ template<typename T> struct is_valid_index_type internal::is_integral<T>::value || __is_enum(T) #else // without C++11, we use is_convertible to Index instead of is_integral in order to treat enums as Index. - internal::is_convertible<T,Index>::value + internal::is_convertible<T,Index>::value && !internal::is_same<T,float>::value && !is_same<T,double>::value #endif }; }; |