[ox/std] Add moveTo method to Result
This commit is contained in:
parent
47a43fecb1
commit
fb7b582348
5
deps/ox/src/ox/std/error.hpp
vendored
5
deps/ox/src/ox/std/error.hpp
vendored
@ -89,6 +89,11 @@ struct [[nodiscard]] Result {
|
||||
return error;
|
||||
}
|
||||
|
||||
constexpr Error moveTo(T *val) noexcept {
|
||||
*val = ox::move(value);
|
||||
return error;
|
||||
}
|
||||
|
||||
};
|
||||
|
||||
namespace detail {
|
||||
|
Loading…
Reference in New Issue
Block a user