aboutsummaryrefslogtreecommitdiffhomepage
path: root/tvmet-1.7.1/include/tvmet/xpr/MatrixCol.h
diff options
context:
space:
mode:
Diffstat (limited to 'tvmet-1.7.1/include/tvmet/xpr/MatrixCol.h')
-rw-r--r--tvmet-1.7.1/include/tvmet/xpr/MatrixCol.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/tvmet-1.7.1/include/tvmet/xpr/MatrixCol.h b/tvmet-1.7.1/include/tvmet/xpr/MatrixCol.h
index 01153a2de..47e2554b8 100644
--- a/tvmet-1.7.1/include/tvmet/xpr/MatrixCol.h
+++ b/tvmet-1.7.1/include/tvmet/xpr/MatrixCol.h
@@ -21,6 +21,8 @@
* $Id: MatrixCol.h,v 1.15 2004/09/16 09:14:18 opetzold Exp $
*/
+#include <cassert>
+
#ifndef TVMET_XPR_MATRIX_COL_H
#define TVMET_XPR_MATRIX_COL_H
@@ -53,7 +55,7 @@ public:
explicit XprMatrixCol(const E& e, int no)
: m_expr(e), m_col(no)
{
- TVMET_RT_CONDITION(no < Cols, "XprMatrixCol Bounce Violation")
+ assert(no < Cols);
}
/** Copy Constructor. Not explicit! */
@@ -64,7 +66,7 @@ public:
#endif
value_type operator()(int i) const {
- TVMET_RT_CONDITION(i < Rows, "XprMatrixCol Bounce Violation")
+ assert(i < Rows);
return m_expr(i, m_col);
}