mirror of
https://gitlab.com/libeigen/eigen.git
synced 2026-04-10 11:34:33 +08:00
Fixes unit test swap_3. Friends are not inherited.
This commit is contained in:
@@ -612,7 +612,7 @@ struct ei_matrix_swap_impl<MatrixTypeA, MatrixTypeB, true>
|
|||||||
{
|
{
|
||||||
static inline void run(MatrixTypeA& a, MatrixTypeB& b)
|
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);
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user