[ox/std] Change toError(ox::ValErr<T>) to toError(const ox::ValErr<T>&)
This commit is contained in:
parent
71b6c72c46
commit
e92e980fde
2
deps/ox/src/ox/std/error.hpp
vendored
2
deps/ox/src/ox/std/error.hpp
vendored
@ -90,7 +90,7 @@ namespace error {
|
|||||||
}
|
}
|
||||||
|
|
||||||
template<typename T>
|
template<typename T>
|
||||||
[[nodiscard]] constexpr ox::Error toError(ox::ValErr<T> ve) noexcept {
|
[[nodiscard]] constexpr ox::Error toError(const ox::ValErr<T> &ve) noexcept {
|
||||||
return ve.error;
|
return ve.error;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user