From 9a06055870cef8fd55b7b1cc19096465058a85c8 Mon Sep 17 00:00:00 2001 From: Jitse Niesen Date: Fri, 13 May 2011 14:05:59 +0100 Subject: [PATCH] Store light-weight objects in evaluators by value. This resolves failure in unit test caused by dying temporaries. --- Eigen/src/Core/CoreEvaluators.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Eigen/src/Core/CoreEvaluators.h b/Eigen/src/Core/CoreEvaluators.h index 2314be719..c060913fb 100644 --- a/Eigen/src/Core/CoreEvaluators.h +++ b/Eigen/src/Core/CoreEvaluators.h @@ -440,7 +440,7 @@ struct evaluator_impl > } protected: - const UnaryOp& m_unaryOp; + const UnaryOp m_unaryOp; typename evaluator::type m_argImpl; }; @@ -782,7 +782,7 @@ struct evaluator_impl > } protected: - const XprType& m_expr; + const XprType m_expr; }; @@ -1148,7 +1148,7 @@ struct evaluator_impl > protected: typename evaluator::type m_argImpl; - const BinaryOp& m_functor; + const BinaryOp m_functor; };