aboutsummaryrefslogtreecommitdiffhomepage
path: root/Eigen/src/Core/DenseStorage.h
diff options
context:
space:
mode:
Diffstat (limited to 'Eigen/src/Core/DenseStorage.h')
-rw-r--r--Eigen/src/Core/DenseStorage.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/Eigen/src/Core/DenseStorage.h b/Eigen/src/Core/DenseStorage.h
index 4c37fadbd..b52b4dc7b 100644
--- a/Eigen/src/Core/DenseStorage.h
+++ b/Eigen/src/Core/DenseStorage.h
@@ -304,6 +304,8 @@ template<typename T, int _Options> class DenseStorage<T, Dynamic, Dynamic, Dynam
, m_cols(std::move(other.m_cols))
{
other.m_data = nullptr;
+ other.m_rows = 0;
+ other.m_cols = 0;
}
DenseStorage& operator=(DenseStorage&& other)
{
@@ -374,6 +376,7 @@ template<typename T, int _Rows, int _Options> class DenseStorage<T, Dynamic, _Ro
, m_cols(std::move(other.m_cols))
{
other.m_data = nullptr;
+ other.m_cols = 0;
}
DenseStorage& operator=(DenseStorage&& other)
{
@@ -440,6 +443,7 @@ template<typename T, int _Cols, int _Options> class DenseStorage<T, Dynamic, Dyn
, m_rows(std::move(other.m_rows))
{
other.m_data = nullptr;
+ other.m_rows = 0;
}
DenseStorage& operator=(DenseStorage&& other)
{