Re: [eigen] rvalue refs - std::swap

[ Thread Index | Date Index | More lists.tuxfamily.org/eigen Archives ]


ups...

On Wed, Oct 28, 2009 at 1:59 AM, Hauke Heibel <hauke.heibel@xxxxxxxxxxxxxx> wrote:
6) v.resize(10); v.transpose().swap(m.row(2)) or v.resize(10); v.transpose().swap(m.row(2));

- calls Matrix::swap(MatrixBase<OtherDerived> && other) -> MatrixBase::swap(MatrixBase const & other)
- as before, calls MatrixBase::swap due to ei_matrix_swap_impl selection (rhs is not a Matrix)

of course this does immediately call MatrixBase::swap(MatrixBase const & other), the lhs is not a Matrix ...


Mail converted by MHonArc 2.6.19+ http://listengine.tuxfamily.org/