aboutsummaryrefslogtreecommitdiffhomepage
path: root/Eigen/src/Core/DenseBase.h
diff options
context:
space:
mode:
Diffstat (limited to 'Eigen/src/Core/DenseBase.h')
-rw-r--r--Eigen/src/Core/DenseBase.h3
1 files changed, 2 insertions, 1 deletions
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<typename Derived> class DenseBase
template<typename RowIndices, typename ColIndices>
typename internal::enable_if<
- internal::traits<typename IndexedViewType<RowIndices,ColIndices>::type>::IsBlockAlike,
+ internal::traits<typename IndexedViewType<RowIndices,ColIndices>::type>::IsBlockAlike
+ && !(internal::is_integral<RowIndices>::value && internal::is_integral<ColIndices>::value),
typename internal::traits<typename IndexedViewType<RowIndices,ColIndices>::type>::BlockType>::type
operator()(const RowIndices& rowIndices, const ColIndices& colIndices) const {
typedef typename internal::traits<typename IndexedViewType<RowIndices,ColIndices>::type>::BlockType BlockType;