C++ Logo

std-proposals

Advanced search

Re: [std-proposals] Requirements on integer types with <random> don't make sense with predefined engines

From: Giuseppe D'Angelo <giuseppe.dangelo_at_[hidden]>
Date: Wed, 6 Nov 2024 09:13:19 +0100
Il 06/11/24 08:52, Halalaluyafail3 via Std-Proposals ha scritto:
> I'm thinking about making a LWG issue for this, though it seems like it is
> preferred to post to this mailing list first.

I think this is another case of this issue:

https://cplusplus.github.io/LWG/issue4109

The issue raises a genuine concern: int8_t may be an alias for char, and
thus giving UB (because char is not in the list).
But your case sounds way more theoretical. Is there a real-world
implementation where uint_fast32_t isn't one of the listed types?

Thank you,
--
Giuseppe D'Angelo

Received on 2024-11-06 08:13:22