Skip to content

Commit

Permalink
Update Result.hpp
Browse files Browse the repository at this point in the history
  • Loading branch information
WillisMedwell committed Mar 8, 2024
1 parent 86c6058 commit 65bb2fa
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions include/Utily/Result.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -146,6 +146,10 @@ namespace Utily {
}
return *this;
}

auto value_move() -> Value&& {
return std::move(std::get<V>(_result).value());
}
};

template <typename Error>
Expand Down

0 comments on commit 65bb2fa

Please sign in to comment.