erm.. use EIGEN_ONLY_USED_FOR_DEBUG() as it already exists.

This commit is contained in:
Thomas Capricelli
2010-05-21 18:13:59 +02:00
parent 618640bf2b
commit 79e9e3f24c
3 changed files with 5 additions and 13 deletions

View File

@@ -214,9 +214,7 @@ template<typename Derived> class DenseBase
*/
void resize(int size)
{
#ifdef EIGEN_NO_DEBUG
EIGEN_ARG_UNUSED(size);
#endif
EIGEN_ONLY_USED_FOR_DEBUG(size);
ei_assert(size == this->size()
&& "DenseBase::resize() does not actually allow to resize.");
}
@@ -226,10 +224,8 @@ template<typename Derived> class DenseBase
*/
void resize(int rows, int cols)
{
#ifdef EIGEN_NO_DEBUG
EIGEN_ARG_UNUSED(rows);
EIGEN_ARG_UNUSED(cols);
#endif
EIGEN_ONLY_USED_FOR_DEBUG(rows);
EIGEN_ONLY_USED_FOR_DEBUG(cols);
ei_assert(rows == this->rows() && cols == this->cols()
&& "DenseBase::resize() does not actually allow to resize.");
}