Date: Thu, 17 Sep 2026 07:28:57 -0700
On Thursday, 17 September 2026 01:00:14 Pacific Daylight Time Jennifier Burnett
via Std-Discussion wrote:
> T is required to be an integral type other than bool so the "otherwise"
> clause only effects character types. So yes adapting my example even if the
> underlying type of char32_t is uint32_t then make_unsigned_t<char32_t>
> would be required to provide uint24_t
Another point is that the uintXX_t types are required to have no padding bits.
So two types with the same size must have the same width and, similarly, types
with the same width must have the same size.
via Std-Discussion wrote:
> T is required to be an integral type other than bool so the "otherwise"
> clause only effects character types. So yes adapting my example even if the
> underlying type of char32_t is uint32_t then make_unsigned_t<char32_t>
> would be required to provide uint24_t
Another point is that the uintXX_t types are required to have no padding bits.
So two types with the same size must have the same width and, similarly, types
with the same width must have the same size.
-- Thiago Macieira - thiago (AT) macieira.info - thiago (AT) kde.org Principal Engineer - Intel Data Center - Platform & Sys. Eng.
Received on 2026-09-17 14:29:14
