mirror of
https://gitlab.com/libeigen/eigen.git
synced 2025-05-06 02:34:05 +08:00
fix wrong assert
This commit is contained in:
parent
4a8258369a
commit
496ea63972
@ -493,7 +493,7 @@ class Matrix
|
||||
using Base::swap;
|
||||
inline void swap(Matrix& other)
|
||||
{
|
||||
ei_assert(matrix.rows() == other.rows() && matrix.cols() == other.cols());
|
||||
ei_assert(rows() == other.rows() && cols() == other.cols());
|
||||
m_storage.swap(other.m_storage);
|
||||
// FIXME what about using this->Base::swap(other); for fixed size ?
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user