Get a view of this SafeInt that allows bitwise operations.
import checkedint.throws : SafeInt; // use IntFlagPolicy.throws SafeInt!(int, No.bitOps) n = 1; static assert(!__traits(compiles, n << 2)); assert(n.bits << 2 == 4);
See Implementation
Get a view of this SafeInt that allows bitwise operations.