Every story and comment from the Hacker News API, in a layout borrowed from 2001.
A comment on Type-safe Bitmasks in C++.
-
uint8_t controller_state = BTN_A | BTN_B;
bitmask<Button> controller_state = Button::A | Button::B;
bitmask<Button> controller_state { Button::A | Button::B };
-
if I read correctly this example would not be possible anymore right? or won't work.