aboutsummaryrefslogtreecommitdiffhomepage
path: root/Eigen/src/Core/DenseBase.h
diff options
context:
space:
mode:
authorGravatar Gael Guennebaud <g.gael@free.fr>2017-01-10 16:33:40 +0100
committerGravatar Gael Guennebaud <g.gael@free.fr>2017-01-10 16:33:40 +0100
commite63678bc8969e76f0a767f0abf9a42f2a89c2d2a (patch)
treee91778fe510b82f008e620c6065e19c3031dbdda /Eigen/src/Core/DenseBase.h
parent8e247744a41dab895fec206020b58a6e6f28b0f7 (diff)
Fix ambiguous call
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;