C++ Logo

std-proposals

Advanced search

Re: [std-proposals] ISO/IEC 60559 Classification for std::numeric_limits

From: Giuseppe D'Angelo <giuseppe.dangelo_at_[hidden]>
Date: Thu, 16 Apr 2026 12:08:00 +0200
On 16/04/2026 11:26, Jan Schultke via Std-Proposals wrote:
> We ought to have some portable way to classify a floating-point type
> according to its ISO/IEC 60559 format. For example, one may want to
> detect at compile time whether float has the same representation as
> std::float32_t, and other such things.

Yeah, this sort of things has stalled my work on P2509 (value-preserving
conversions). std::numeric_limits simply doesn't have enough information
to clearly detect all cases...

Thank you,
--
Giuseppe D'Angelo

Received on 2026-04-16 10:08:05