mirror of
https://gitlab.com/libeigen/eigen.git
synced 2025-07-14 00:51:52 +08:00
bug #1634: remove double copy in move-ctor of non movable Matrix/Array
(grafted from ab4df3e6ff530ab520884bdbf44d61b53b1ee05f )
This commit is contained in:
parent
a2d6c106a4
commit
5c97b48c29
@ -153,8 +153,6 @@ class Array
|
|||||||
: Base(std::move(other))
|
: Base(std::move(other))
|
||||||
{
|
{
|
||||||
Base::_check_template_params();
|
Base::_check_template_params();
|
||||||
if (RowsAtCompileTime!=Dynamic && ColsAtCompileTime!=Dynamic)
|
|
||||||
Base::_set_noalias(other);
|
|
||||||
}
|
}
|
||||||
EIGEN_DEVICE_FUNC
|
EIGEN_DEVICE_FUNC
|
||||||
Array& operator=(Array&& other) EIGEN_NOEXCEPT_IF(std::is_nothrow_move_assignable<Scalar>::value)
|
Array& operator=(Array&& other) EIGEN_NOEXCEPT_IF(std::is_nothrow_move_assignable<Scalar>::value)
|
||||||
|
@ -274,8 +274,6 @@ class Matrix
|
|||||||
: Base(std::move(other))
|
: Base(std::move(other))
|
||||||
{
|
{
|
||||||
Base::_check_template_params();
|
Base::_check_template_params();
|
||||||
if (RowsAtCompileTime!=Dynamic && ColsAtCompileTime!=Dynamic)
|
|
||||||
Base::_set_noalias(other);
|
|
||||||
}
|
}
|
||||||
EIGEN_DEVICE_FUNC
|
EIGEN_DEVICE_FUNC
|
||||||
Matrix& operator=(Matrix&& other) EIGEN_NOEXCEPT_IF(std::is_nothrow_move_assignable<Scalar>::value)
|
Matrix& operator=(Matrix&& other) EIGEN_NOEXCEPT_IF(std::is_nothrow_move_assignable<Scalar>::value)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user