[ox/std] Make Error constructor explicit
This commit is contained in:
parent
01f29c5258
commit
ef6673067b
2
deps/ox/src/ox/std/error.hpp
vendored
2
deps/ox/src/ox/std/error.hpp
vendored
@ -23,7 +23,7 @@ struct [[nodiscard]] Error {
|
||||
uint16_t line = 0;
|
||||
uint64_t errCode = 0;
|
||||
|
||||
constexpr Error(uint64_t ec = 0) noexcept: errCode(ec) {
|
||||
explicit 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 {
|
||||
|
Loading…
x
Reference in New Issue
Block a user