From e92e980fde9127c46274c86fe5f1f666733a9002 Mon Sep 17 00:00:00 2001 From: Gary Talent Date: Tue, 16 Jun 2020 00:45:24 -0500 Subject: [PATCH] [ox/std] Change toError(ox::ValErr) to toError(const ox::ValErr&) --- deps/ox/src/ox/std/error.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/deps/ox/src/ox/std/error.hpp b/deps/ox/src/ox/std/error.hpp index b6aee015..36a23daf 100644 --- a/deps/ox/src/ox/std/error.hpp +++ b/deps/ox/src/ox/std/error.hpp @@ -90,7 +90,7 @@ namespace error { } template -[[nodiscard]] constexpr ox::Error toError(ox::ValErr ve) noexcept { +[[nodiscard]] constexpr ox::Error toError(const ox::ValErr &ve) noexcept { return ve.error; }