[ox/std] Add default constructor to ox::Error

This commit is contained in:
Gary Talent 2022-08-01 21:49:34 -05:00
parent 57785ebf99
commit c6ba893583

View File

@ -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 {