[ox/std] Add Result::Result(const Result<U> other)

This commit is contained in:
Gary Talent 2022-03-25 20:43:04 -05:00
parent 053d35b31c
commit a02d496de5

View File

@ -126,6 +126,10 @@ struct [[nodiscard]] Result {
constexpr Result() noexcept: error(0) {
}
template<typename U>
constexpr Result(const Result<U> &other) noexcept: value(other.value), error(error) {
}
constexpr Result(const Error &error) noexcept: error(error) {
}