aboutsummaryrefslogtreecommitdiffhomepage
path: root/Eigen/src
diff options
context:
space:
mode:
authorGravatar Hauke Heibel <hauke.heibel@gmail.com>2010-01-10 23:15:36 +0100
committerGravatar Hauke Heibel <hauke.heibel@gmail.com>2010-01-10 23:15:36 +0100
commit83d21d5ff61783ed4b786acf355b3cbca2adc3ce (patch)
tree0538a5a3d745ea979e1dc82b2ed4f743a5864348 /Eigen/src
parent3d5912d4589e038d309edb006e86e0c8d970a2d9 (diff)
Fixes unit test swap_3. Friends are not inherited.
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);
}
};