diff --git a/tstl/include/expected.hpp b/tstl/include/expected.hpp index 3421c9b2..76d785cc 100644 --- a/tstl/include/expected.hpp +++ b/tstl/include/expected.hpp @@ -260,7 +260,7 @@ public: } expected& operator=(expected&& rhs){ - this_type(std::forward(rhs)).swap(*this); + this_type(std::move(rhs)).swap(*this); return *this; } @@ -270,7 +270,7 @@ public: } expected& operator=(value_type&& v){ - this_type(std::forward(v)).swap(*this); + this_type(std::move(v)).swap(*this); return *this; }