On Monday, 19 January 2015 at 11:40:07 UTC, Per Nordlöw wrote:
Typical deductions are
- enums: E.max - E.min + 1 (this requires offsetting logic in

I guess a trait for this, say

enum bitsizeOf(E) = return bitsNeeded(E.max - E.min + 1);

is motivated aswell, if it doesn't already exists...

What's the name of `bitsNeeded` (binary Power) in Phobos?

Reply via email to