Re:C++ proposal: There are 8 bits in a byte
by jonstewart on Thursday October 17, 2024 @10:19PM
(#41875827)
<cstdint> has int8_t, uint8_t, int16_t, uint16_t, int32_t, uint32_t, int64_t, and uint64_t. I still go back and forth between uint64_t, size_t, and unsigned int, but am defaulting to uint64_t more and more, even if it doesn't matter.
[ Parent
| on HN ]
Re:C++ proposal: There are 8 bits in a byte
by WalterBright on Friday October 18, 2024 @10:23PM
(#41885165)
That doesn't really fix it, because of the integral promotion rules.