Re: [PATCH] libstdc++: Correct preprocessing checks for floatX_t and bfloat_16 formatting

2025-04-16 Thread Tomasz Kaminski
On Wed, Mar 12, 2025 at 1:00 PM Jonathan Wakely wrote: > On Tue, 11 Mar 2025 at 12:22, Tomasz Kamiński wrote: > > > > Floating points types _Float16, _Float32, _Float64, and bfloat16, > > can be formatted only if std::to_chars overloads for such types > > where provided. Currently this is only th

[PATCH v2] libstdc++: Remove dead code in range_formatter::format [PR109162]

2025-04-16 Thread Tomasz Kamiński
Because the _M_format(__rg, __fc) were placed outside of if constexpr, these method and it's childs where instantiated, even if _M_format could be used. To simplify the if constexpr chain, we introduce a __simply_formattable_range (name based on simple-view) exposition only concept, that checks if

<    1   2