[ox/std] Improve ability to create unique int types, regardless of underlying type

This commit is contained in:
2019-07-28 00:57:19 -05:00
parent b107dc756b
commit 142387aa04
3 changed files with 142 additions and 138 deletions

View File

@ -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);