By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
448,470 Members | 1,068 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 448,470 IT Pros & Developers. It's quick & easy.

uint8_t vs std::byte?

P: 1
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.
2 Weeks Ago #1
Share this question for a faster answer!
Share on Google+

Post your reply

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