[ox/std] Cleanup Result::copyTo variants
All checks were successful
Build / build (push) Successful in 2m4s

This commit is contained in:
Gary Talent 2023-12-25 00:54:59 -06:00
parent b869f490c3
commit e941781f21

View File

@ -165,21 +165,7 @@ struct [[nodiscard]] Result {
return error == 0;
}
constexpr Error copyTo(type &val) const & noexcept {
if (!error) [[likely]] {
val = value;
}
return error;
}
constexpr Error copyTo(type &val) const && noexcept {
if (!error) [[likely]] {
val = value;
}
return error;
}
constexpr Error copyTo(type &val) & noexcept {
constexpr Error copyTo(type &val) const& noexcept {
if (!error) [[likely]] {
val = value;
}