• @xthexder@l.sw0.com
    link
    fedilink
    40
    edit-2
    3 days 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
      3 days ago

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