diff --git a/Eigen/src/Core/ArithmeticSequence.h b/Eigen/src/Core/ArithmeticSequence.h index c5c8bb105..6c10ecc02 100644 --- a/Eigen/src/Core/ArithmeticSequence.h +++ b/Eigen/src/Core/ArithmeticSequence.h @@ -43,9 +43,20 @@ struct aseq_reverse_first_type { > type; }; +template +struct aseq_reverse_first_type_aux { + typedef Index type; +}; + +template +struct aseq_reverse_first_type_aux::type> { + typedef FixedInt<(SizeType::value-1)*IncrType::value> type; +}; + template struct aseq_reverse_first_type { - typedef Symbolic::AddExpr > type; + typedef typename aseq_reverse_first_type_aux::type Aux; + typedef Symbolic::AddExpr > type; }; template