diff --git a/README.md b/README.md index 072ddd0..529a3e3 100644 --- a/README.md +++ b/README.md @@ -86,4 +86,4 @@ Requires [Catch](https://github.com/philsquared/Catch) for testing. This is bund [![CC0](http://i.creativecommons.org/p/zero/1.0/88x31.png)]("http://creativecommons.org/publicdomain/zero/1.0/") -To the extent possible under law, [Simon Brand](https://twitter.com/TartanLlama) has waived all copyright and related or neighboring rights to the `optional` library. This work is published from: United Kingdom. +To the extent possible under law, [Simon Brand](https://twitter.com/TartanLlama) has waived all copyright and related or neighboring rights to the `expected` library. This work is published from: United Kingdom. diff --git a/expected.hpp b/expected.hpp index 58452db..5f930c3 100644 --- a/expected.hpp +++ b/expected.hpp @@ -705,7 +705,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 &