• @xthexder@l.sw0.com
    link
    fedilink
    34
    edit-2
    21 hours 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
      8
      edit-2
      21 hours ago

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