Avoid a potential risk of recursive definition using traits to get he scalar type

This commit is contained in:
Gael Guennebaud 2014-09-15 17:40:17 +02:00
parent 8514179aa3
commit 466d6d41c6

View File

@ -49,8 +49,8 @@ template<> struct storage_kind_to_shape<Dense> { typedef DenseShape Shape; };
template< typename T,
typename LhsKind = typename evaluator_traits<typename T::Lhs>::Kind,
typename RhsKind = typename evaluator_traits<typename T::Rhs>::Kind,
typename LhsScalar = typename T::Lhs::Scalar,
typename RhsScalar = typename T::Rhs::Scalar> struct binary_evaluator;
typename LhsScalar = typename traits<typename T::Lhs>::Scalar,
typename RhsScalar = typename traits<typename T::Rhs>::Scalar> struct binary_evaluator;
template< typename T,
typename Kind = typename evaluator_traits<typename T::NestedExpression>::Kind,