473,379 Members | 1,278 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,379 software developers and data experts.

uint8_t vs std::byte?

Can someone explain the big deal about std::byte? I always include <cstdint> and use the int8_t and uint8_t types for byte level access (I find it more intuitive than using chars and I prefer to avoid the win32-specific types like BYTE). Is there a compelling reason to start using std::byte? Generally I use the other int_t and uint_t types for size-based memory accesses so I'd probably be including <cstdint> anyway.
Mar 11 '20 #1
0 2493

Sign in to post your reply or Sign up for a free account.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.