Starting with C++17, std::byte
is often (not always) a better choice over uint8_t
for new code.
However, the existing codebase discourages the use of std::byte
, when helpers such as ReadLE32
are used. This is because calling code will be cluttered with byte-casts.
Fix it by allowing std::byte
pointers in ReadLE32
(and friends).