fix compilation: make the check_coordinates* functions const

This commit is contained in:
Gael Guennebaud 2010-07-10 22:37:16 +02:00
parent 6dcd373b9d
commit c4ef69b5bd

View File

@ -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
}; };