forked from TartanLlama/expected
Remove bad move
This commit is contained in:
@@ -680,7 +680,7 @@ struct expected_move_assign_base<T, E, false>
|
|||||||
operator=(const expected_move_assign_base &rhs) noexcept(
|
operator=(const expected_move_assign_base &rhs) noexcept(
|
||||||
std::is_nothrow_move_constructible<T>::value
|
std::is_nothrow_move_constructible<T>::value
|
||||||
&&std::is_nothrow_move_assignable<T>::value) {
|
&&std::is_nothrow_move_assignable<T>::value) {
|
||||||
this->assign(std::move(rhs));
|
this->assign(rhs);
|
||||||
return *this;
|
return *this;
|
||||||
}
|
}
|
||||||
expected_move_assign_base &
|
expected_move_assign_base &
|
||||||
|
Reference in New Issue
Block a user