From 81a78bf95e81a7c8d57dd2a1a0fd47db52296225 Mon Sep 17 00:00:00 2001 From: Gary Talent Date: Tue, 20 Oct 2020 19:02:53 -0500 Subject: [PATCH] [ox/std] Fix Error to build in Clang --- deps/ox/src/ox/std/error.hpp | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/deps/ox/src/ox/std/error.hpp b/deps/ox/src/ox/std/error.hpp index fd29e64f..136a164b 100644 --- a/deps/ox/src/ox/std/error.hpp +++ b/deps/ox/src/ox/std/error.hpp @@ -1,5 +1,5 @@ /* - * Copyright 2015 - 2018 gtalent2@gmail.com + * Copyright 2015 - 2020 gary@drinkingtea.net * * This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this @@ -19,11 +19,12 @@ namespace ox { struct [[nodiscard]] Error { const char *msg = nullptr; - const char *file = ""; + const char *file = nullptr; uint16_t line = 0; uint64_t errCode = 0; - constexpr Error() noexcept = default; + constexpr Error(uint64_t ec = 0) noexcept: errCode(ec) { + } explicit constexpr Error(const char *file, uint32_t line, uint64_t errCode, const char *msg = nullptr) noexcept { this->file = file;