From 8eab9fb87e2bcb3d9bce50c588e88fb6d500bfb5 Mon Sep 17 00:00:00 2001 From: Gael Guennebaud Date: Mon, 4 Jan 2010 19:00:16 +0100 Subject: port VectorwiseOp and Swap to the novel mechanisms, and various cleanning --- Eigen/src/Core/Swap.h | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'Eigen/src/Core/Swap.h') diff --git a/Eigen/src/Core/Swap.h b/Eigen/src/Core/Swap.h index 010d8bb8b..60b6fffc9 100644 --- a/Eigen/src/Core/Swap.h +++ b/Eigen/src/Core/Swap.h @@ -35,11 +35,12 @@ template struct ei_traits > : ei_traits {}; template class SwapWrapper - : public MatrixBase > + : public ExpressionType::template MakeBase >::Type { public: - EIGEN_GENERIC_PUBLIC_INTERFACE(SwapWrapper) + typedef typename ExpressionType::template MakeBase >::Type Base; + _EIGEN_DENSE_PUBLIC_INTERFACE(SwapWrapper) typedef typename ei_packet_traits::type Packet; inline SwapWrapper(ExpressionType& xpr) : m_expression(xpr) {} @@ -117,7 +118,7 @@ template class SwapWrapper */ template template -void MatrixBase::swap(MatrixBase EIGEN_REF_TO_TEMPORARY other) +void DenseBase::swap(DenseBase EIGEN_REF_TO_TEMPORARY other) { (SwapWrapper(derived())).lazyAssign(other); } -- cgit v1.2.3