From 3ed451d909073a9c21470854c71acaa466f17099 Mon Sep 17 00:00:00 2001 From: Gary Talent Date: Mon, 25 Oct 2021 19:09:03 -0500 Subject: [PATCH] [ox/std] Make oxIgnoreError take const ref (synced from 5f7bb2e1aecf60ac3fcf1ab7ce9a6c77e1409a00) --- src/ox/std/error.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ox/std/error.hpp b/src/ox/std/error.hpp index 03712209d..f0538f211 100644 --- a/src/ox/std/error.hpp +++ b/src/ox/std/error.hpp @@ -169,7 +169,7 @@ constexpr Error toError(const Result &ve) noexcept { } -constexpr void oxIgnoreError(ox::Error) noexcept {} +constexpr void oxIgnoreError(const ox::Error&) noexcept {} #if __cplusplus >= 202002L #define oxReturnError(x) if (const auto _ox_error = ox::detail::toError(x)) [[unlikely]] return _ox_error #define oxThrowError(x) if (const auto _ox_error = ox::detail::toError(x)) [[unlikely]] ox::Exception(_ox_error)