[ox/std] Make Result::reoriginate non-const
This commit is contained in:
+2
-2
@@ -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}};
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user