mirror of
https://gitlab.com/libeigen/eigen.git
synced 2025-07-03 11:45:12 +08:00
fix compilation: make the check_coordinates* functions const
This commit is contained in:
parent
6dcd373b9d
commit
c4ef69b5bd
@ -90,7 +90,7 @@ template<typename Derived> class TriangularBase : public EigenBase<Derived>
|
|||||||
|
|
||||||
protected:
|
protected:
|
||||||
|
|
||||||
void check_coordinates(Index row, Index col)
|
void check_coordinates(Index row, Index col) const
|
||||||
{
|
{
|
||||||
EIGEN_ONLY_USED_FOR_DEBUG(row);
|
EIGEN_ONLY_USED_FOR_DEBUG(row);
|
||||||
EIGEN_ONLY_USED_FOR_DEBUG(col);
|
EIGEN_ONLY_USED_FOR_DEBUG(col);
|
||||||
@ -102,12 +102,12 @@ template<typename Derived> class TriangularBase : public EigenBase<Derived>
|
|||||||
}
|
}
|
||||||
|
|
||||||
#ifdef EIGEN_INTERNAL_DEBUGGING
|
#ifdef EIGEN_INTERNAL_DEBUGGING
|
||||||
void check_coordinates_internal(Index row, Index col)
|
void check_coordinates_internal(Index row, Index col) const
|
||||||
{
|
{
|
||||||
check_coordinates(row, col);
|
check_coordinates(row, col);
|
||||||
}
|
}
|
||||||
#else
|
#else
|
||||||
void check_coordinates_internal(Index , Index ) {}
|
void check_coordinates_internal(Index , Index ) const {}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
};
|
};
|
||||||
|
Loading…
x
Reference in New Issue
Block a user