From 51b361b3bb40d547ecf39e4c2e90a806c56c9751 Mon Sep 17 00:00:00 2001 From: Hauke Heibel Date: Fri, 2 Aug 2013 21:07:39 +0200 Subject: Ensure that (potentially aligned) stack objects are passed by reference. --- unsupported/test/matrix_power.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'unsupported/test/matrix_power.cpp') diff --git a/unsupported/test/matrix_power.cpp b/unsupported/test/matrix_power.cpp index 4c4cac509..58644f84b 100644 --- a/unsupported/test/matrix_power.cpp +++ b/unsupported/test/matrix_power.cpp @@ -97,7 +97,7 @@ void testGeneral(const MatrixType& m, double tol) } template -void testSingular(MatrixType m, double tol) +void testSingular(const MatrixType& m, double tol) { const int IsComplex = NumTraits::Scalar>::IsComplex; typedef typename internal::conditional, const MatrixType&>::type TriangularType; @@ -126,7 +126,7 @@ void testSingular(MatrixType m, double tol) } template -void testLogThenExp(MatrixType m, double tol) +void testLogThenExp(const MatrixType& m, double tol) { typedef typename MatrixType::Scalar Scalar; Scalar x; -- cgit v1.2.3