Skip to content

Commit 8de3afe

Browse files
committed
New issue from Hewill: "flat_set::erase(iterator) is underconstrained"
1 parent df6e9b6 commit 8de3afe

File tree

1 file changed

+53
-0
lines changed

1 file changed

+53
-0
lines changed

xml/issue4384.xml

Lines changed: 53 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,53 @@
1+
<?xml version='1.0' encoding='utf-8' standalone='no'?>
2+
<!DOCTYPE issue SYSTEM "lwg-issue.dtd">
3+
4+
<issue num="4384" status="New">
5+
<title>`flat_set::erase(iterator)` is underconstrained
6+
</title>
7+
<section>
8+
<sref ref="[flat.set.defn]"/>
9+
<sref ref="[flat.multiset.defn]"/>
10+
</section>
11+
<submitter>Hewill Kang</submitter>
12+
<date>25 Sep 2025</date>
13+
<priority>99</priority>
14+
15+
<discussion>
16+
<p>
17+
This is a follow-up of LWG <iref ref="3704"/> since we now have `flat_set` and `flat_multiset`.
18+
</p>
19+
</discussion>
20+
21+
<resolution>
22+
<p>
23+
This wording is relative to <paper num="N5014"/>.
24+
</p>
25+
26+
<ol>
27+
28+
<li><p>Modify <sref ref="[flat.set.defn]"/> as indicated:</p>
29+
30+
<blockquote>
31+
<pre>
32+
iterator erase(iterator position) <ins>requires (!same_as&lt;iterator, const_iterator&gt;)</ins>;
33+
iterator erase(const_iterator position);
34+
</pre>
35+
</blockquote>
36+
37+
</li>
38+
39+
<li><p>Modify <sref ref="[flat.multiset.defn]"/> as indicated:</p>
40+
41+
<blockquote>
42+
<pre>
43+
iterator erase(iterator position) <ins>requires (!same_as&lt;iterator, const_iterator&gt;)</ins>;
44+
iterator erase(const_iterator position);
45+
</pre>
46+
</blockquote>
47+
48+
</li>
49+
50+
</ol>
51+
</resolution>
52+
53+
</issue>

0 commit comments

Comments
 (0)