[ox/std] Rename Result::get to Result::copyTo
This commit is contained in:
parent
d16bbef282
commit
9ab3543b32
4
deps/ox/src/ox/std/error.hpp
vendored
4
deps/ox/src/ox/std/error.hpp
vendored
@ -165,12 +165,12 @@ struct [[nodiscard]] Result {
|
|||||||
return error == 0;
|
return error == 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
constexpr Error get(type *val) const noexcept {
|
constexpr Error copyTo(type *val) const noexcept {
|
||||||
*val = value;
|
*val = value;
|
||||||
return error;
|
return error;
|
||||||
}
|
}
|
||||||
|
|
||||||
constexpr Error get(type *val) noexcept {
|
constexpr Error copyTo(type *val) noexcept {
|
||||||
*val = value;
|
*val = value;
|
||||||
return error;
|
return error;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user