From 53289a8b643e69fc86fcfbc5195e1324b306c57d Mon Sep 17 00:00:00 2001 From: Benoit Jacob Date: Fri, 13 Jun 2008 08:09:48 +0000 Subject: [PATCH] * even though the _Flags default to the corrected value, still correct them in the ei_traits, so that they're guaranteed even if the user specified his own non-default flags (like before). Measured to not make compilation any slower. --- Eigen/src/Core/Matrix.h | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/Eigen/src/Core/Matrix.h b/Eigen/src/Core/Matrix.h index 75e2c67b0..baaae57e4 100644 --- a/Eigen/src/Core/Matrix.h +++ b/Eigen/src/Core/Matrix.h @@ -87,7 +87,11 @@ struct ei_traits > ColsAtCompileTime = _Cols, MaxRowsAtCompileTime = _MaxRows, MaxColsAtCompileTime = _MaxCols, - Flags = _Flags, + Flags = ei_corrected_matrix_flags< + _Scalar, + ei_size_at_compile_time<_MaxRows,_MaxCols>::ret, + _Flags + >::ret, CoeffReadCost = NumTraits::ReadCost }; };