From 76a2db4c7467dda0b08a0b992bf4c306195997a7 Mon Sep 17 00:00:00 2001 From: Gael Guennebaud Date: Fri, 14 Sep 2012 09:54:56 +0200 Subject: [PATCH] workaround weird compilation error with MSVC (transplanted from 48c4d48aec7b8aac992aabe265e7153e8a36c0bd ) --- Eigen/src/Core/MatrixBase.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Eigen/src/Core/MatrixBase.h b/Eigen/src/Core/MatrixBase.h index c1e0ed132..36ea2cee8 100644 --- a/Eigen/src/Core/MatrixBase.h +++ b/Eigen/src/Core/MatrixBase.h @@ -237,7 +237,7 @@ template class MatrixBase // huuuge hack. make Eigen2's matrix.part() work in eigen3. Problem: Diagonal is now a class template instead // of an integer constant. Solution: overload the part() method template wrt template parameters list. - template class U> + template class U> const DiagonalWrapper part() const { return diagonal().asDiagonal(); } #endif // EIGEN2_SUPPORT