From 4ec99bbc0c3756520fb6e53ffdc0f63a739dd87a Mon Sep 17 00:00:00 2001 From: Benoit Jacob Date: Mon, 21 Dec 2009 13:49:43 -0500 Subject: [PATCH] support gcc 4.5 --- Eigen/src/Core/Product.h | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/Eigen/src/Core/Product.h b/Eigen/src/Core/Product.h index d24ef6159..7066e5743 100644 --- a/Eigen/src/Core/Product.h +++ b/Eigen/src/Core/Product.h @@ -58,10 +58,12 @@ enum { OuterProduct, InnerProduct, UnrolledProduct, GemvProduct, GemmProduct }; template struct ei_product_type { + typedef typename ei_cleantype::type _Lhs; + typedef typename ei_cleantype::type _Rhs; enum { - Rows = Lhs::RowsAtCompileTime, - Cols = Rhs::ColsAtCompileTime, - Depth = EIGEN_ENUM_MIN(Lhs::ColsAtCompileTime,Rhs::RowsAtCompileTime) + Rows = _Lhs::RowsAtCompileTime, + Cols = _Rhs::ColsAtCompileTime, + Depth = EIGEN_ENUM_MIN(_Lhs::ColsAtCompileTime,_Rhs::RowsAtCompileTime) }; // the splitting into different lines of code here, introducing the _select enums and the typedef below,