Skip to main content
5 events
when toggle format what by license comment
May 20, 2020 at 0:50 comment added Ray @RobK Ugh, I rather prefer the rhs of << to indicate the set bit directly and don't want to count the 0's around the 1.
Dec 21, 2018 at 16:49 comment added Jorge Bellon Maybe you meant bitset instead of bitfield.
Mar 16, 2015 at 20:55 comment added Rob K C++14 allows you to define binary literals (e.g. 0b0100) so the 1 << n format is sort of obsolete.
Apr 9, 2013 at 12:01 history edited gbjbaanb CC BY-SA 3.0
added 160 characters in body
Apr 9, 2013 at 11:54 history answered gbjbaanb CC BY-SA 3.0