From c6822d6723ec34c052ca35393aa7e83146bee8c6 Mon Sep 17 00:00:00 2001 From: Hauke Heibel Date: Mon, 21 Sep 2009 19:59:58 +0200 Subject: Added EIGEN_REF_TO_TEMPORARY define for rvalue support. Allowed VC10 to make use of static_assert. --- Eigen/src/Core/Swap.h | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) (limited to 'Eigen/src/Core/Swap.h') diff --git a/Eigen/src/Core/Swap.h b/Eigen/src/Core/Swap.h index 44e1f07e0..a7cf219f7 100644 --- a/Eigen/src/Core/Swap.h +++ b/Eigen/src/Core/Swap.h @@ -128,15 +128,9 @@ template class SwapWrapper */ template template -void MatrixBase::swap(const MatrixBase& other) +void MatrixBase::swap(MatrixBase EIGEN_REF_TO_TEMPORARY other) { (SwapWrapper(derived())).lazyAssign(other); } #endif // EIGEN_SWAP_H - - - - - - -- cgit v1.2.3