3 ms·
Nope, people actually just write the bit setting code. It's simpler and also I haven't found a good generic bit flags class that works as you intend.
by daemin 8y ago
Nope, people actually just write the bit setting code. It's simpler and also I haven't found a good generic bit flags class that works as you intend.
- slededit 8y agoWhat about C++ bitfields? Not a library but a language extension. A lot of code I used has migrated to that.
- daemin 8y agoNormal C++ bitfields? Sometimes you get that inside classes in the form of "bool x : 1; bool y : 1;" etc. But that's much harder to use as far as function parameters go, so old school bitmasks are used for that.