Skip to content

Commit b4c5047

Browse files
committed
New issue from Hewill: "Including <stacktrace> doesn't provide std::begin/end"
1 parent 64dfc3d commit b4c5047

File tree

1 file changed

+56
-0
lines changed

1 file changed

+56
-0
lines changed

xml/issue4387.xml

Lines changed: 56 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,56 @@
1+
<?xml version='1.0' encoding='utf-8' standalone='no'?>
2+
<!DOCTYPE issue SYSTEM "lwg-issue.dtd">
3+
4+
<issue num="4387" status="New">
5+
<title>Including <tt>&lt;stacktrace&gt;</tt> doesn't provide `std::begin/end`
6+
</title>
7+
<section>
8+
<sref ref="[iterator.range]"/>
9+
</section>
10+
<submitter>Hewill Kang</submitter>
11+
<date>27 Sep 2025</date>
12+
<priority>99</priority>
13+
14+
<discussion>
15+
<p>
16+
`basic_stacktrace` is explicitly specified as a reversible container, an allocator-aware container,
17+
and a const-qualified sequence container, with members `begin`/`end`, `rbegin`/`rend`,
18+
`cbegin`/`cend`, `crbegin`/`crend`, `empty`, `size`, etc.
19+
<p/>
20+
Thus, it's worth making the corresponding free functions available when introducing
21+
<code>&lt;stacktrace&gt;</code>, just like other containers.
22+
</p>
23+
</discussion>
24+
25+
<resolution>
26+
<p>
27+
This wording is relative to <paper num="N5014"/>.
28+
</p>
29+
30+
<ol>
31+
32+
<li><p>Modify <sref ref="[iterator.range]"/> as indicated:</p>
33+
34+
<blockquote>
35+
<p>
36+
-1- In addition to being available via inclusion of the <tt>&lt;iterator&gt;</tt> header, the function
37+
templates in <sref ref="[iterator.range]"/> are available when any of the following headers are included:
38+
<tt>&lt;array&gt;</tt>,
39+
<tt>&lt;deque&gt;</tt>, <tt>&lt;flat_map&gt;</tt>, <tt>&lt;flat_set&gt;</tt>,
40+
<tt>&lt;forward_list&gt;</tt>,
41+
<tt>&lt;hive&gt;</tt>,
42+
<tt>&lt;inplace_vector&gt;</tt>, <tt>&lt;list&gt;</tt>, <tt>&lt;map&gt;</tt>,
43+
<tt>&lt;regex&gt;</tt>, <tt>&lt;set&gt;</tt>,
44+
<tt>&lt;span&gt;</tt>, <ins><tt>&lt;stacktrace&gt;</tt></ins>,
45+
<tt>&lt;string&gt;</tt>, <tt>&lt;string_view&gt;</tt>,
46+
<tt>&lt;unordered_map&gt;</tt>, <tt>&lt;unordered_set&gt;</tt>, and <tt>&lt;vector&gt;</tt>.
47+
48+
</p>
49+
</blockquote>
50+
51+
</li>
52+
53+
</ol>
54+
</resolution>
55+
56+
</issue>

0 commit comments

Comments
 (0)