From d40c110053c13692ffc0df25fca292d98996d496 Mon Sep 17 00:00:00 2001 From: Gael Guennebaud Date: Fri, 22 Jan 2010 10:15:41 +0100 Subject: lot of cleaning: - clean the *_PUBLIC_INTERFACE_* - update Diagonal, ReturnByValue, ForceAlignedAccess, UnaryView, etc. to support array - many other small stuff --- Eigen/src/Core/ReturnByValue.h | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) (limited to 'Eigen/src/Core/ReturnByValue.h') diff --git a/Eigen/src/Core/ReturnByValue.h b/Eigen/src/Core/ReturnByValue.h index e35493236..0199d3740 100644 --- a/Eigen/src/Core/ReturnByValue.h +++ b/Eigen/src/Core/ReturnByValue.h @@ -1,7 +1,7 @@ // This file is part of Eigen, a lightweight C++ template library // for linear algebra. // -// Copyright (C) 2009 Gael Guennebaud +// Copyright (C) 2009-2010 Gael Guennebaud // Copyright (C) 2009 Benoit Jacob // // Eigen is free software; you can redistribute it and/or @@ -57,12 +57,14 @@ struct ei_nested, n, PlainMatrixType> typedef typename ei_traits::ReturnMatrixType type; }; -template - class ReturnByValue : public MatrixBase > +template class ReturnByValue + : public ei_traits::ReturnMatrixType::template MakeBase >::Type { public: - EIGEN_GENERIC_PUBLIC_INTERFACE(ReturnByValue) typedef typename ei_traits::ReturnMatrixType ReturnMatrixType; + typedef typename ReturnMatrixType::template MakeBase >::Type Base; + EIGEN_DENSE_PUBLIC_INTERFACE(ReturnByValue) + template inline void evalTo(Dest& dst) const { static_cast(this)->evalTo(dst); } -- cgit v1.2.3