Skip to content

Commit 97fe05b

Browse files
committed
Clarify discussion for 4398
1 parent 67a5053 commit 97fe05b

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

xml/issue4398.xml

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -24,11 +24,13 @@ template<> inline constexpr bool enable_nonlocking_formatter_optimization&
2424
</pre></blockquote>
2525
</blockquote>
2626
<p>
27-
However, formatting an adaptor requires formatting of the underlying range, and we disable
28-
the nonlocking_optimizations for all ranges.
27+
However, formatting an adaptor requires formatting of the underlying range
28+
in terms of `ranges::ref_view`, and we disable the nonlocking_optimizations for all ranges, including `ranges::ref_view`.
2929
<p/>
30-
This problem does not occur for the `flat_set`, `flat_map` adaptors, which are also ranges, and
31-
do not have a specialized formatter.
30+
This problem does not occur for the `flat_set`, `flat_map` adaptors, which are
31+
also ranges, but unlike `stack` etc. they do not have a specialized formatter.
32+
They use the `formatter` specialization for ranges and we already disable the
33+
optimization for that formatter.
3234
<p/>
3335
The proposed wording has recently been implemented in
3436
<a href="https://gcc.gnu.org/pipermail/libstdc++/2025-October/063758.html">gcc's libstdc++</a>.

0 commit comments

Comments
 (0)