diff --git a/tl/expected.hpp b/tl/expected.hpp index f19e8da..78e8daf 100644 --- a/tl/expected.hpp +++ b/tl/expected.hpp @@ -807,7 +807,7 @@ struct expected_operations_base : expected_storage_base { } constexpr const unexpected &geterr() const & { return this->m_unexpect; } TL_EXPECTED_11_CONSTEXPR unexpected &&geterr() && { - std::move(this->m_unexpect); + return std::move(this->m_unexpect); } #ifndef TL_EXPECTED_NO_CONSTRR constexpr const unexpected &&geterr() const && {