News for hackers. Stuff that matters.
Re:Type-safe Bitmasks in C++ by lomnakkus on Wednesday June 13, 2018 @01:50PM (#17305426)
Obviously it depends on the particulars of any given project, but if you're deriving more than just the string names of the enum values it may be worth it.

Using X-macros can sometimes reduce boilerplate hugely simply through avoiding switch statements on the enum values.

There are no comments on this comment yet.