workaround weird compilation error with MSVC

(transplanted from 48c4d48aec7b8aac992aabe265e7153e8a36c0bd
)
This commit is contained in:
Gael Guennebaud 2012-09-14 09:54:56 +02:00
parent 53a0142583
commit 76a2db4c74

View File

@ -237,7 +237,7 @@ template<typename Derived> class MatrixBase
// huuuge hack. make Eigen2's matrix.part<Diagonal>() work in eigen3. Problem: Diagonal is now a class template instead // huuuge hack. make Eigen2's matrix.part<Diagonal>() 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. // of an integer constant. Solution: overload the part() method template wrt template parameters list.
template<template<typename T, int n> class U> template<template<typename T, int N> class U>
const DiagonalWrapper<ConstDiagonalReturnType> part() const const DiagonalWrapper<ConstDiagonalReturnType> part() const
{ return diagonal().asDiagonal(); } { return diagonal().asDiagonal(); }
#endif // EIGEN2_SUPPORT #endif // EIGEN2_SUPPORT