News for hackers. Stuff that matters.
Re:Type-safe Bitmasks in C++ by vostok on Wednesday June 13, 2018 @08:00AM (#17302240)
In many cases the input is known at compile time.

For example instead of

    #define BTN_A      0x01
you have

   bitmask<Button>(A)
Both of these are known at compile time and they are equivalent.

There are no comments on this comment yet.