From c6ba893583c3bb8a53d3a01a45d9ba3881f184ea Mon Sep 17 00:00:00 2001 From: Gary Talent Date: Mon, 1 Aug 2022 21:49:34 -0500 Subject: [PATCH] [ox/std] Add default constructor to ox::Error --- deps/ox/src/ox/std/error.hpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/deps/ox/src/ox/std/error.hpp b/deps/ox/src/ox/std/error.hpp index e1412ffe..b78f298f 100644 --- a/deps/ox/src/ox/std/error.hpp +++ b/deps/ox/src/ox/std/error.hpp @@ -44,7 +44,9 @@ struct [[nodiscard]] Error { uint16_t line = 0; ErrorCode errCode = 0; - explicit constexpr Error(ErrorCode ec = 0) noexcept: errCode(ec) { + constexpr Error() noexcept = default; + + explicit constexpr Error(ErrorCode ec) noexcept: errCode(ec) { } explicit constexpr Error(const char *file, uint32_t line, ErrorCode errCode, const char *msg = nullptr) noexcept {