Skip to content

Commit 37ea98d

Browse files
committed
New issue from Hewill: "cache_latest_view should be freestanding"
1 parent cb68526 commit 37ea98d

File tree

1 file changed

+55
-0
lines changed

1 file changed

+55
-0
lines changed

xml/issue4189.xml

Lines changed: 55 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,55 @@
1+
<?xml version='1.0' encoding='utf-8' standalone='no'?>
2+
<!DOCTYPE issue SYSTEM "lwg-issue.dtd">
3+
4+
<issue num="4189" status="New">
5+
<title>`cache_latest_view` should be freestanding</title>
6+
<section><sref ref="[version.syn]"/><sref ref="[ranges.syn]"/></section>
7+
<submitter>Hewill Kang</submitter>
8+
<date>23 Dec 2024</date>
9+
<priority>99</priority>
10+
11+
<discussion>
12+
<p>
13+
`cache_latest_view` can be freestanding, but this never comes up in the discussion, which seems to be an oversight.
14+
</p>
15+
16+
</discussion>
17+
18+
<resolution>
19+
<p>
20+
This wording is relative to <paper num="N5001"/>.
21+
</p>
22+
23+
<ol>
24+
<li><p>Modify <sref ref="[version.syn]"/> as indicated:</p>
25+
26+
<blockquote><pre>
27+
#define __cpp_lib_ranges_cache_latest 202411L // <ins><i>freestanding</i>,</ins> <i>also in</i> &lt;ranges&gt;
28+
</pre></blockquote>
29+
30+
</li>
31+
32+
<li><p>Modify <sref ref="[ranges.syn]"/> as indicated:</p>
33+
34+
<blockquote><pre>
35+
#include &lt;compare&gt; // <i>see <sref ref="[compare.syn]"/></i>
36+
#include &lt;initializer_list&gt; // <i>see <sref ref="[initializer.list.syn]"/></i>
37+
#include &lt;iterator&gt; // <i>see <sref ref="[iterator.synopsis]"/></i>
38+
39+
namespace std::ranges {
40+
[&hellip;]
41+
// <i><sref ref="[range.cache.latest]"/>, cache latest view</i>
42+
template&lt;input_range V&gt;
43+
requires view&lt;V&gt;
44+
class cache_latest_view; <ins>// <i>freestanding</i></ins>
45+
46+
namespace views { inline constexpr <i>unspecified</i> cache_latest = <i>unspecified</i>; } <ins>// <i>freestanding</i></ins>
47+
[&hellip;]
48+
}
49+
</pre></blockquote>
50+
</li>
51+
</ol>
52+
53+
</resolution>
54+
55+
</issue>

0 commit comments

Comments
 (0)