mirror of
https://gitlab.com/libeigen/eigen.git
synced 2025-08-01 09:42:01 +08:00
workaround weird compilation error with MSVC
(transplanted from 48c4d48aec7b8aac992aabe265e7153e8a36c0bd )
This commit is contained in:
parent
53a0142583
commit
76a2db4c74
@ -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
|
||||
// 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
|
||||
{ return diagonal().asDiagonal(); }
|
||||
#endif // EIGEN2_SUPPORT
|
||||
|
Loading…
x
Reference in New Issue
Block a user