@ -388,11 +388,16 @@ public:
}
/// Asserts that the result succeeded and returns a reference to it.
T& Unwrap() {
T& Unwrap() & {
ASSERT_MSG(Succeeded(), "Tried to Unwrap empty ResultVal");
return **this;
T&& Unwrap() && {
return std::move(**this);
T&& MoveFrom() {
return std::move(Unwrap());