[ox/std] Improve ability to create unique int types, regardless of underlying type
This commit is contained in:
4
deps/ox/src/ox/std/error.hpp
vendored
4
deps/ox/src/ox/std/error.hpp
vendored
@ -22,7 +22,9 @@
|
||||
|
||||
namespace ox {
|
||||
|
||||
using Error = Uint64;
|
||||
class BaseError {};
|
||||
|
||||
using Error = Integer<uint64_t, BaseError>;
|
||||
|
||||
constexpr Error errCode(Error err) {
|
||||
return (err >> 59) & onMask<Error>(5);
|
||||
|
Reference in New Issue
Block a user