• @xthexder@l.sw0.com
    link
    fedilink
    41
    edit-2
    1 year ago

    Or just std::bitset<8> for C++. Bit fields are neat though, it can store weird stuff like a 3 bit integer, packed next to booleans

    • Sonotsugipaa
      link
      fedilink
      English
      10
      edit-2
      1 year ago

      That’s only for C++, as far as I can tell that struct is valid C