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:
@@ -76,9 +76,10 @@ template<typename MatrixType> class Block
|
||||
|
||||
template<typename Scalar, typename Derived>
|
||||
Block<Derived>
|
||||
Object<Scalar, Derived>::block(int startRow, int endRow, int startCol, int endCol)
|
||||
Object<Scalar, Derived>::block(int startRow, int endRow, int startCol, int endCol) const
|
||||
{
|
||||
return Block<Derived>(static_cast<Derived*>(this)->ref(), startRow, endRow, startCol, endCol);
|
||||
return Block<Derived>(static_cast<Derived*>(const_cast<Object*>(this))->ref(),
|
||||
startRow, endRow, startCol, endCol);
|
||||
}
|
||||
|
||||
#endif // EI_BLOCK_H
|
||||
|
||||
Reference in New Issue
Block a user