[ox/std] Make Result::reoriginate non-const

This commit is contained in:
2026-05-31 00:43:11 -05:00
parent 5c9b0be867
commit 8e52dc64d8
+2 -2
View File
@@ -348,7 +348,7 @@ struct [[nodiscard]] Result {
constexpr Result reoriginate(
ErrorCode const pErrCode,
CString const pMsg = nullptr,
std::source_location const &pSrc = std::source_location::current()) const && noexcept {
std::source_location const &pSrc = std::source_location::current()) && noexcept {
if (error) {
return {std::move(value), Error{pErrCode, pMsg, pSrc}};
}
@@ -356,7 +356,7 @@ struct [[nodiscard]] Result {
}
constexpr Result reoriginate(
std::source_location const &pSrc = std::source_location::current()) const && noexcept {
std::source_location const &pSrc = std::source_location::current()) && noexcept {
return {std::move(value), Error{error.errCode, error.msg, pSrc}};
}