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)); }