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

2025-04-17 Thread Jonathan Wakely
OK for trunk with two spelling fixes... On Thu, 17 Apr 2025, 07:31 Tomasz Kamiński, wrote: > Because the _M_format(__rg, __fc) were placed outside of if constexpr, > these method and it's childs where "its children" instantiated, even if _M_format > could be used. > > To simplify the if cons

[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