int val = 3;
bool is_odd = val & (decltype(val))0x01 == (decltype (val))1;
you are viewing a single comment's thread
view the rest of the comments
view the rest of the comments
int val = 3;
bool is_odd = val & (decltype(val))0x01 == (decltype (val))1;