File tree Expand file tree Collapse file tree 1 file changed +55
-0
lines changed
Expand file tree Collapse file tree 1 file changed +55
-0
lines changed Original file line number Diff line number Diff line change 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 > < ranges>
28+ </pre ></blockquote >
29+
30+ </li >
31+
32+ <li ><p >Modify <sref ref =" [ranges.syn]" /> as indicated:</p >
33+
34+ <blockquote ><pre >
35+ #include < compare> // <i >see <sref ref =" [compare.syn]" /></i >
36+ #include < initializer_list> // <i >see <sref ref =" [initializer.list.syn]" /></i >
37+ #include < iterator> // <i >see <sref ref =" [iterator.synopsis]" /></i >
38+
39+ namespace std::ranges {
40+ [… ]
41+ // <i ><sref ref =" [range.cache.latest]" />, cache latest view</i >
42+ template< input_range V>
43+ requires view< V>
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+ [… ]
48+ }
49+ </pre ></blockquote >
50+ </li >
51+ </ol >
52+
53+ </resolution >
54+
55+ </issue >
You can’t perform that action at this time.
0 commit comments