aboutsummaryrefslogtreecommitdiffhomepage
path: root/Eigen/src
diff options
context:
space:
mode:
Diffstat (limited to 'Eigen/src')
-rw-r--r--Eigen/src/Core/DenseStorageBase.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/Eigen/src/Core/DenseStorageBase.h b/Eigen/src/Core/DenseStorageBase.h
index d3754ae0d..302da2b19 100644
--- a/Eigen/src/Core/DenseStorageBase.h
+++ b/Eigen/src/Core/DenseStorageBase.h
@@ -612,7 +612,7 @@ struct ei_matrix_swap_impl<MatrixTypeA, MatrixTypeB, true>
{
static inline void run(MatrixTypeA& a, MatrixTypeB& b)
{
- a.m_storage.swap(b.m_storage);
+ static_cast<MatrixTypeA::Base&>(a).m_storage.swap(static_cast<MatrixTypeB::Base&>(b).m_storage);
}
};