[ox/std] Add default constructor to ox::Error
This commit is contained in:
parent
57785ebf99
commit
c6ba893583
4
deps/ox/src/ox/std/error.hpp
vendored
4
deps/ox/src/ox/std/error.hpp
vendored
@ -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 {
|
||||
|
Loading…
Reference in New Issue
Block a user