mirror of
https://gitlab.com/libeigen/eigen.git
synced 2026-04-10 11:34:33 +08:00
mark more methods as const. also rename, Numeric.h->NumTraits.h
This commit is contained in:
@@ -75,9 +75,9 @@ template<typename MatrixType> class Minor
|
||||
|
||||
template<typename Scalar, typename Derived>
|
||||
Minor<Derived>
|
||||
Object<Scalar, Derived>::minor(int row, int col)
|
||||
Object<Scalar, Derived>::minor(int row, int col) const
|
||||
{
|
||||
return Minor<Derived>(static_cast<Derived*>(this)->ref(), row, col);
|
||||
return Minor<Derived>(static_cast<Derived*>(const_cast<Object*>(this))->ref(), row, col);
|
||||
}
|
||||
|
||||
#endif // EI_MINOR_H
|
||||
|
||||
Reference in New Issue
Block a user