forked from lwg/issues
-
Notifications
You must be signed in to change notification settings - Fork 28
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
New issue from Hewill: "cache_latest_view should be freestanding"
- Loading branch information
Showing
1 changed file
with
55 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,55 @@ | ||
<?xml version='1.0' encoding='utf-8' standalone='no'?> | ||
<!DOCTYPE issue SYSTEM "lwg-issue.dtd"> | ||
|
||
<issue num="4189" status="New"> | ||
<title>`cache_latest_view` should be freestanding</title> | ||
<section><sref ref="[version.syn]"/><sref ref="[ranges.syn]"/></section> | ||
<submitter>Hewill Kang</submitter> | ||
<date>23 Dec 2024</date> | ||
<priority>99</priority> | ||
|
||
<discussion> | ||
<p> | ||
`cache_latest_view` can be freestanding, but this never comes up in the discussion, which seems to be an oversight. | ||
</p> | ||
|
||
</discussion> | ||
|
||
<resolution> | ||
<p> | ||
This wording is relative to <paper num="N5001"/>. | ||
</p> | ||
|
||
<ol> | ||
<li><p>Modify <sref ref="[version.syn]"/> as indicated:</p> | ||
|
||
<blockquote><pre> | ||
#define __cpp_lib_ranges_cache_latest 202411L // <ins><i>freestanding</i>,</ins> <i>also in</i> <ranges> | ||
</pre></blockquote> | ||
|
||
</li> | ||
|
||
<li><p>Modify <sref ref="[ranges.syn]"/> as indicated:</p> | ||
|
||
<blockquote><pre> | ||
#include <compare> // <i>see <sref ref="[compare.syn]"/></i> | ||
#include <initializer_list> // <i>see <sref ref="[initializer.list.syn]"/></i> | ||
#include <iterator> // <i>see <sref ref="[iterator.synopsis]"/></i> | ||
|
||
namespace std::ranges { | ||
[…] | ||
// <i><sref ref="[range.cache.latest]"/>, cache latest view</i> | ||
template<input_range V> | ||
requires view<V> | ||
class cache_latest_view; <ins>// <i>freestanding</i></ins> | ||
|
||
namespace views { inline constexpr <i>unspecified</i> cache_latest = <i>unspecified</i>; } <ins>// <i>freestanding</i></ins> | ||
[…] | ||
} | ||
</pre></blockquote> | ||
</li> | ||
</ol> | ||
|
||
</resolution> | ||
|
||
</issue> |