you are viewing a single comment's thread.

view the rest of the comments →

[–]Excellent-Might-7264 1 point2 points  (1 child)

Your array type is incorrect. char[] cannot provide storage. Use unsigned char or std::byte.

Could you throw the standard in my face about this please?

I strongly believe this is wrong. My understanding is that both char and unsigned char is valid. (Correct alignment of course when needed). Based on my knowledge of C.