How to use new std::byte type in places where old-style unsigned char is needed?
You’re missing the point why std::byte was invented in the first place. The reason it was invented is to hold a raw byte in memory without the assumption that it’s a character. You can see that in cppreference. Like char and unsigned char, it can be used to access raw memory occupied by other objects … Read more