From 65abb4c52e198c7379ad50655bfaa9d4ddd20c77 Mon Sep 17 00:00:00 2001 From: Gael Guennebaud Date: Tue, 21 Oct 2008 15:43:25 +0000 Subject: [PATCH] compilation fix for ICC --- Eigen/src/Core/SolveTriangular.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Eigen/src/Core/SolveTriangular.h b/Eigen/src/Core/SolveTriangular.h index ea0956ab3..dfcbfe18e 100755 --- a/Eigen/src/Core/SolveTriangular.h +++ b/Eigen/src/Core/SolveTriangular.h @@ -233,7 +233,8 @@ void MatrixBase::solveTriangularInPlace(MatrixBase& other ei_assert(!(Flags & ZeroDiagBit)); ei_assert(Flags & (UpperTriangularBit|LowerTriangularBit)); - const bool copy = ei_traits::Flags&RowMajorBit; + enum { copy = ei_traits::Flags&RowMajorBit }; + typedef typename ei_meta_if::type, OtherDerived&>::ret OtherCopy; OtherCopy otherCopy(other.derived());