From c4ef69b5bd46b106d001921867847a741bc6725b Mon Sep 17 00:00:00 2001 From: Gael Guennebaud Date: Sat, 10 Jul 2010 22:37:16 +0200 Subject: [PATCH] fix compilation: make the check_coordinates* functions const --- Eigen/src/Core/TriangularMatrix.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Eigen/src/Core/TriangularMatrix.h b/Eigen/src/Core/TriangularMatrix.h index c66bbb9fa..e2afa23b0 100644 --- a/Eigen/src/Core/TriangularMatrix.h +++ b/Eigen/src/Core/TriangularMatrix.h @@ -90,7 +90,7 @@ template class TriangularBase : public EigenBase 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(col); @@ -102,12 +102,12 @@ template class TriangularBase : public EigenBase } #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); } #else - void check_coordinates_internal(Index , Index ) {} + void check_coordinates_internal(Index , Index ) const {} #endif };