[ox/std] Add Result::Result(const Result<U> other)
This commit is contained in:
parent
053d35b31c
commit
a02d496de5
4
deps/ox/src/ox/std/error.hpp
vendored
4
deps/ox/src/ox/std/error.hpp
vendored
@ -126,6 +126,10 @@ struct [[nodiscard]] Result {
|
|||||||
constexpr Result() noexcept: error(0) {
|
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) {
|
constexpr Result(const Error &error) noexcept: error(error) {
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user