From 9488a12125112db04a1967b539ae92953af068bc Mon Sep 17 00:00:00 2001 From: Benoit Jacob Date: Thu, 11 Feb 2010 19:32:56 -0500 Subject: [PATCH] work around brain dead ICC --- Eigen/src/Core/Matrix.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Eigen/src/Core/Matrix.h b/Eigen/src/Core/Matrix.h index e1c8cea32..7bdf0d96e 100644 --- a/Eigen/src/Core/Matrix.h +++ b/Eigen/src/Core/Matrix.h @@ -592,7 +592,8 @@ template inline void Matrix<_Scalar, _Rows, _Cols, _Options, _MaxRows, _MaxCols>::swap(const MatrixBase& other) { - ei_matrix_swap_impl::run(*this, *const_cast*>(&other)); + // the Eigen:: here is to work around a stupid ICC 11.1 bug. + Eigen::ei_matrix_swap_impl::run(*this, *const_cast*>(&other)); }