diff options
Diffstat (limited to 'tvmet-1.7.1/include/tvmet/xpr/MatrixRow.h')
-rw-r--r-- | tvmet-1.7.1/include/tvmet/xpr/MatrixRow.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/tvmet-1.7.1/include/tvmet/xpr/MatrixRow.h b/tvmet-1.7.1/include/tvmet/xpr/MatrixRow.h index 8da0bbb0b..d8a796858 100644 --- a/tvmet-1.7.1/include/tvmet/xpr/MatrixRow.h +++ b/tvmet-1.7.1/include/tvmet/xpr/MatrixRow.h @@ -21,6 +21,8 @@ * $Id: MatrixRow.h,v 1.14 2004/09/16 09:14:18 opetzold Exp $ */ +#include <cassert> + #ifndef TVMET_XPR_MATRIX_ROW_H #define TVMET_XPR_MATRIX_ROW_H @@ -53,7 +55,7 @@ public: explicit XprMatrixRow(const E& e, int no) : m_expr(e), m_row(no) { - TVMET_RT_CONDITION(no < Rows, "XprMatrixRow Bounce Violation") + assert(no < Rows); } /** Copy Constructor. Not explicit! */ @@ -64,7 +66,7 @@ public: #endif value_type operator()(int j) const { - TVMET_RT_CONDITION(j < Cols, "XprMatrixRow Bounce Violation") + assert(j < Cols); return m_expr(m_row, j); } |