From 344623e872c455114f73b84fb02210c12a97e133 Mon Sep 17 00:00:00 2001 From: Benoit Jacob Date: Mon, 26 Nov 2007 09:21:11 +0000 Subject: [PATCH] Matrix(int) constructor is only for vectors. --- src/Core/MatrixStorage.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Core/MatrixStorage.h b/src/Core/MatrixStorage.h index 70dadc3e1..ec9f10b7f 100644 --- a/src/Core/MatrixStorage.h +++ b/src/Core/MatrixStorage.h @@ -88,7 +88,7 @@ class MatrixStorage public: MatrixStorage(int dim) : m_rows(dim) { - assert(m_rows > 0 && ColsAtCompileTime > 0); + assert(m_rows > 0 && ColsAtCompileTime == 1); m_array = new Scalar[m_rows * ColsAtCompileTime]; } @@ -132,7 +132,7 @@ class MatrixStorage public: MatrixStorage(int dim) : m_cols(dim) { - assert(m_cols > 0 && RowsAtCompileTime > 0); + assert(m_cols > 0 && RowsAtCompileTime == 1); m_array = new Scalar[m_cols * RowsAtCompileTime]; }