Mask unused-parameter warnings, when building with NDEBUG

This commit is contained in:
Christoph Hertzberg
2019-01-18 10:41:14 +01:00
parent 2eccbaf3f7
commit da0a41b9ce
3 changed files with 3 additions and 0 deletions

View File

@@ -383,6 +383,7 @@ template <typename _MatrixType> class CompleteOrthogonalDecomposition
template<bool Transpose_, typename Rhs>
void _check_solve_assertion(const Rhs& b) const {
EIGEN_ONLY_USED_FOR_DEBUG(b);
eigen_assert(m_cpqr.m_isInitialized && "CompleteOrthogonalDecomposition is not initialized.");
eigen_assert((Transpose_?derived().cols():derived().rows())==b.rows() && "CompleteOrthogonalDecomposition::solve(): invalid number of rows of the right hand side matrix b");
}