C++ Logo

std-proposals

Advanced search

Re: [std-proposals] Question Regarding Default Behavior of std::numeric_limits<T> Primary Template

From: Ivan Matek <libbooze_at_[hidden]>
Date: Sun, 12 Jan 2025 23:01:25 +0100
On Sun, Jan 12, 2025 at 11:07 AM Jonathan Wakely <cxx_at_[hidden]> wrote:

> See https://wg21.link/p1841 for a stalled proposal to replace
> numeric_limits with something better.
>

Very informative, thank you. For example I had no idea about that this was
discussed:

Poll: max_digits10 should deviate from numeric_limits and yields digits10_v
+ 1.



On Sun, Jan 12, 2025 at 11:24 AM Simon Kraemer <sikraemer_at_[hidden]> wrote:

> I found this post on Stackoverflow that goes into the history of
> std::numeric_limits and why it is as it is.
> https://stackoverflow.com/a/47521516/4181011
>
>>
>> Ah so it is indeed weird, I was not imagining things. :) Thank you so
much for your help, and in unlikely case he is reading this thanks to
Dietmar for writing on a prestandardization history of C++.

Received on 2025-01-12 22:01:37