C++ Logo

std-proposals

Advanced search

Re: [std-proposals] Shorter fixed-width integer types

From: Thiago Macieira <thiago_at_[hidden]>
Date: Tue, 01 Jul 2025 13:57:48 -0700
On Tuesday, 1 July 2025 11:06:31 Pacific Daylight Time Sebastian Wittmeier via
Std-Proposals wrote:
> AFAIK std::byte and uint8_t are different beasts.

Right, uint8_t is only a byte for CHAR_BIT == 8 platforms (see other thread).
Otherwise, the byte type is unsigned char, for which we provide an enum
wrapper with the same size.

-- 
Thiago Macieira - thiago (AT) macieira.info - thiago (AT) kde.org
  Principal Engineer - Intel Platform & System Engineering

Received on 2025-07-01 20:57:50