diff options
author | 2014-09-15 17:40:17 +0200 | |
---|---|---|
committer | 2014-09-15 17:40:17 +0200 | |
commit | 466d6d41c6dfda5a2814d0ee6d02439ccda4c8d0 (patch) | |
tree | 69b3920f3fcd2022862623833dc4e1df382c39eb /Eigen | |
parent | 8514179aa31a6a42523c66f66a94723ed758cd5f (diff) |
Avoid a potential risk of recursive definition using traits to get he scalar type
Diffstat (limited to 'Eigen')
-rw-r--r-- | Eigen/src/Core/CoreEvaluators.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Eigen/src/Core/CoreEvaluators.h b/Eigen/src/Core/CoreEvaluators.h index b8dc05d98..09a83a382 100644 --- a/Eigen/src/Core/CoreEvaluators.h +++ b/Eigen/src/Core/CoreEvaluators.h @@ -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, |