Hacker News new | past | comments | ask | show | jobs | submit login

What about C++ bitfields? Not a library but a language extension. A lot of code I used has migrated to that.



Normal 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.




Join us for AI Startup School this June 16-17 in San Francisco!

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: