Re: [PATCH] libstdc++: Fix constification in range_formatter::format v2 [PR109162]

2025-04-16 Thread Jonathan Wakely
On Wed, 16 Apr 2025 at 15:17, Tomasz Kaminski wrote: > > > > On Wed, Apr 16, 2025 at 3:47 PM Tomasz Kamiński wrote: >> >> Because the _M_format(__rg, __fc) were placed outside of if constexpr, >> these method and it's childs where instantiated, even if _M_format> _Range> >> could be used. Now we

Re: [PATCH] libstdc++: Fix constification in range_formatter::format v2 [PR109162]

2025-04-16 Thread Tomasz Kaminski
On Wed, Apr 16, 2025 at 3:47 PM Tomasz Kamiński wrote: > Because the _M_format(__rg, __fc) were placed outside of if constexpr, > these method and it's childs where instantiated, even if _M_format _Range> > could be used. Now we put the calls in else branch of if constexpr. > > libstdc++-v3/Chang

[PATCH] libstdc++: Fix constification in range_formatter::format v2 [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. Now we put the calls in else branch of if constexpr. libstdc++-v3/ChangeLog: * include/std/format (range_formatter::format): Do not inst