mirror of
https://gitlab.com/libeigen/eigen.git
synced 2025-08-11 19:29:02 +08:00
Removed errornous swap for stack storage.
This commit is contained in:
parent
8fdffdd573
commit
8710440951
@ -180,7 +180,7 @@ template<typename T, int Size, int _Options> class DenseStorage<T, Size, Dynamic
|
|||||||
m_rows = other.m_rows;
|
m_rows = other.m_rows;
|
||||||
m_cols = other.m_cols;
|
m_cols = other.m_cols;
|
||||||
}
|
}
|
||||||
other.swap(*this); return *this;
|
return *this;
|
||||||
}
|
}
|
||||||
DenseStorage(DenseIndex, DenseIndex nbRows, DenseIndex nbCols) : m_rows(nbRows), m_cols(nbCols) {}
|
DenseStorage(DenseIndex, DenseIndex nbRows, DenseIndex nbCols) : m_rows(nbRows), m_cols(nbCols) {}
|
||||||
void swap(DenseStorage& other)
|
void swap(DenseStorage& other)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user