diff --git a/Eigen/src/Core/DenseBase.h b/Eigen/src/Core/DenseBase.h index 7c01e9328..779cb4549 100644 --- a/Eigen/src/Core/DenseBase.h +++ b/Eigen/src/Core/DenseBase.h @@ -574,7 +574,8 @@ template class DenseBase template typename internal::enable_if< - internal::traits::type>::IsBlockAlike, + internal::traits::type>::IsBlockAlike + && !(internal::is_integral::value && internal::is_integral::value), typename internal::traits::type>::BlockType>::type operator()(const RowIndices& rowIndices, const ColIndices& colIndices) const { typedef typename internal::traits::type>::BlockType BlockType;