From 8e52dc64d86d06fd6d7b12c7c2565bcaf3a21ec8 Mon Sep 17 00:00:00 2001 From: Gary Talent Date: Sun, 31 May 2026 00:43:11 -0500 Subject: [PATCH] [ox/std] Make Result::reoriginate non-const --- deps/oxlib/src/std/include/ox/std/error.hpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/deps/oxlib/src/std/include/ox/std/error.hpp b/deps/oxlib/src/std/include/ox/std/error.hpp index bc5266f5..d7ba928c 100644 --- a/deps/oxlib/src/std/include/ox/std/error.hpp +++ b/deps/oxlib/src/std/include/ox/std/error.hpp @@ -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}}; }