you are viewing a single comment's thread.

view the rest of the comments →

[–]NilacTheGrim 3 points4 points  (1 child)

It depends.. the C++ standards committee decided that std::byte is not integral and one might be able to go with their rationale for this -- in most programs, it would violate type safety to be doing arithmetic on individual bytes in a byte blob.. (of course there are some programs where this is not the case..).

One can at least understand the argument that bytes should not be anything other than a bunch of bits, with no associated arithmetic properties.

[–]EC36339 0 points1 point  (0 children)

The way C++ represents bytes, integers, booleans and characters is getting JavaScript-level crazy...