From 6d432eae5df88fe249d4db10c31647fa27872c8e Mon Sep 17 00:00:00 2001 From: Rasmus Munk Larsen Date: Wed, 5 Jun 2019 16:42:27 -0700 Subject: [PATCH] Make is_valid_index_type return false for float and double when EIGEN_HAS_TYPE_TRAITS is off. --- Eigen/src/Core/util/XprHelper.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 struct is_valid_index_type internal::is_integral::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::value + internal::is_convertible::value && !internal::is_same::value && !is_same::value #endif }; };