Skip to content

Commit 4a64fd9

Browse files
eisenwavetkoeppe
authored andcommitted
LWG4384 flat_set::erase(iterator) is underconstrained
1 parent eb6fb9a commit 4a64fd9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

source/containers.tex

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19041,7 +19041,7 @@
1904119041
constexpr container_type extract() &&;
1904219042
constexpr void replace(container_type&&);
1904319043

19044-
constexpr iterator erase(iterator position);
19044+
constexpr iterator erase(iterator position) requires (!@\libconcept{same_as}@<iterator, const_iterator>);
1904519045
constexpr iterator erase(const_iterator position);
1904619046
constexpr size_type erase(const key_type& x);
1904719047
template<class K> constexpr size_type erase(K&& x);
@@ -19712,7 +19712,7 @@
1971219712
constexpr container_type extract() &&;
1971319713
constexpr void replace(container_type&&);
1971419714

19715-
constexpr iterator erase(iterator position);
19715+
constexpr iterator erase(iterator position) requires (!@\libconcept{same_as}@<iterator, const_iterator>);
1971619716
constexpr iterator erase(const_iterator position);
1971719717
constexpr size_type erase(const key_type& x);
1971819718
template<class K> constexpr size_type erase(K&& x);

0 commit comments

Comments
 (0)