Hi! On Thu, Mar 19, 2026 at 03:03:38PM +0000, Jonathan Wakely wrote: > > enable_nonlocking_formatter_optimization has been added in PR121790 P3235R3 > > r16-4351 and I have to wonder, though bits/formatfwd.h hunk already in > > PR121790 P3107R5 r16-4350. I wonder why it shows up for C++23 though. > > P3235R3 was approved as a DR for C++23, at the 2024-06 meeting: > "8. Accept as a Defect Report and apply the changes in P3235R3 > (std::print more types faster with less memory) to the C++ working > paper. " > The committee kept approving a LOT of std::format and std::print changes as > DRs. > So it's enabled in the header for C++23, and so it should also be > exported from the module for C++23.
Ok, in that case here is another patch to export it. Tested on x86_64-linux, ok for trunk? 2026-03-19 Jakub Jelinek <[email protected]> PR libstdc++/121790 * src/c++23/std.cc.in: Add enable_nonlocking_formatter_optimization. --- libstdc++-v3/src/c++23/std.cc.in.jj 2026-03-19 16:11:11.203849141 +0100 +++ libstdc++-v3/src/c++23/std.cc.in 2026-03-19 16:16:34.801386836 +0100 @@ -1384,6 +1384,9 @@ export namespace std using std::range_format; using std::range_formatter; #endif +#if __glibcxx_print >= 202403L + using std::enable_nonlocking_formatter_optimization; +#endif } // <forward_list> Jakub
