From e0d5b0bf19199d077eada80dc93247210f817b9e Mon Sep 17 00:00:00 2001 From: Simon Brand Date: Fri, 1 Dec 2017 12:23:52 +0000 Subject: [PATCH] Remove bad move --- expected.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/expected.hpp b/expected.hpp index c1cd6cd..03a53f4 100644 --- a/expected.hpp +++ b/expected.hpp @@ -680,7 +680,7 @@ struct expected_move_assign_base operator=(const expected_move_assign_base &rhs) noexcept( std::is_nothrow_move_constructible::value &&std::is_nothrow_move_assignable::value) { - this->assign(std::move(rhs)); + this->assign(rhs); return *this; } expected_move_assign_base &