diff --git a/include/frg/expected.hpp b/include/frg/expected.hpp index 028e4e0..4d39c9d 100644 --- a/include/frg/expected.hpp +++ b/include/frg/expected.hpp @@ -97,6 +97,7 @@ struct [[nodiscard]] expected : destructor_crtp { std::launder(reinterpret_cast(stor_))->~T(); e_ = other.e_; } + return *this; } expected &operator= (expected &&other) {