3 Feb
2016
3 Feb
'16
9:30 a.m.
2016-02-03 17:01 GMT+08:00 Niall Douglas
1. Is typesafe, so not a C bitfield.
2. Is convenient for programmers to declare (i.e. little boilerplate in a specific bitfield declaration).
3. Works as you'd expect a bitfield to work, including bitfield::flag.
4. if(bf) works.
5. Is 100% constexpr and generates zero runtime overhead.
This is what I have: http://melpon.org/wandbox/permlink/RDl3B6EmnG5hRuAJ