From 09364c8d05e1ca82773ded6eb5d29f12eaa87734 Mon Sep 17 00:00:00 2001 From: Benoit Jacob Date: Mon, 12 Oct 2009 12:29:07 -0400 Subject: [PATCH] fix compilation with gcc 3.3 --- Eigen/src/Core/Matrix.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Eigen/src/Core/Matrix.h b/Eigen/src/Core/Matrix.h index ffd16d376..22090c777 100644 --- a/Eigen/src/Core/Matrix.h +++ b/Eigen/src/Core/Matrix.h @@ -505,7 +505,9 @@ class Matrix template EIGEN_STRONG_INLINE Matrix& _set(const MatrixBase& other) { - _set_selector(other.derived(), typename ei_meta_if::ret()); + // this enum introduced to fix compilation with gcc 3.3 + enum { cond = int(OtherDerived::Flags) & EvalBeforeAssigningBit }; + _set_selector(other.derived(), typename ei_meta_if::ret()); return *this; }