From 50eef6dfc399b3276005498fc84de6f519708725 Mon Sep 17 00:00:00 2001 From: Gael Guennebaud Date: Sun, 20 Jul 2014 15:16:34 +0200 Subject: [PATCH] Compilation fixes --- Eigen/src/Core/ProductEvaluators.h | 20 ++++++++++---------- Eigen/src/Core/util/ForwardDeclarations.h | 4 ++-- 2 files changed, 12 insertions(+), 12 deletions(-) diff --git a/Eigen/src/Core/ProductEvaluators.h b/Eigen/src/Core/ProductEvaluators.h index 9436e200b..dc91ddd4d 100644 --- a/Eigen/src/Core/ProductEvaluators.h +++ b/Eigen/src/Core/ProductEvaluators.h @@ -889,8 +889,8 @@ struct product_evaluator, ProductTag, DenseShape, * Products with permutation matrices ***************************************************************************/ -template -struct generic_product_impl +template +struct generic_product_impl { template static void evalTo(Dest& dst, const Lhs& lhs, const Rhs& rhs) @@ -900,8 +900,8 @@ struct generic_product_impl } }; -template -struct generic_product_impl +template +struct generic_product_impl { template static void evalTo(Dest& dst, const Lhs& lhs, const Rhs& rhs) @@ -911,8 +911,8 @@ struct generic_product_impl } }; -template -struct generic_product_impl, Rhs, PermutationShape, DenseShape, ProductType> +template +struct generic_product_impl, Rhs, PermutationShape, DenseShape, ProductTag> { template static void evalTo(Dest& dst, const Transpose& lhs, const Rhs& rhs) @@ -922,8 +922,8 @@ struct generic_product_impl, Rhs, PermutationShape, DenseShape, P } }; -template -struct generic_product_impl, DenseShape, PermutationShape, ProductType> +template +struct generic_product_impl, DenseShape, PermutationShape, ProductTag> { template static void evalTo(Dest& dst, const Lhs& lhs, const Transpose& rhs) @@ -935,7 +935,7 @@ struct generic_product_impl, DenseShape, PermutationShape, P // TODO: left/right and self-adj/symmetric/permutation look the same ... Too much boilerplate? template -struct product_evaluator, ProductTag, PermutationShape, DenseShape, typename Lhs::Scalar, typename Rhs::Scalar> +struct product_evaluator, ProductTag, PermutationShape, DenseShape, typename traits::Scalar, typename traits::Scalar> : public evaluator::PlainObject>::type { typedef Product XprType; @@ -954,7 +954,7 @@ protected: }; template -struct product_evaluator, ProductTag, DenseShape, PermutationShape, typename Lhs::Scalar, typename Rhs::Scalar> +struct product_evaluator, ProductTag, DenseShape, PermutationShape, typename traits::Scalar, typename traits::Scalar> : public evaluator::PlainObject>::type { typedef Product XprType; diff --git a/Eigen/src/Core/util/ForwardDeclarations.h b/Eigen/src/Core/util/ForwardDeclarations.h index 274cfac00..99aa9b372 100644 --- a/Eigen/src/Core/util/ForwardDeclarations.h +++ b/Eigen/src/Core/util/ForwardDeclarations.h @@ -164,8 +164,8 @@ template< typename T, int ProductTag = internal::product_type::ret, typename LhsShape = typename evaluator_traits::Shape, typename RhsShape = typename evaluator_traits::Shape, - typename LhsScalar = typename T::Lhs::Scalar, - typename RhsScalar = typename T::Rhs::Scalar + typename LhsScalar = typename traits::Scalar, + typename RhsScalar = typename traits::Scalar > struct product_evaluator; }