Skip to content

Commit 2663394

Browse files
committed
LWG4384 flat_set::erase(iterator) is underconstrained
1 parent 3eb32d7 commit 2663394

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
@@ -19040,7 +19040,7 @@
1904019040
constexpr container_type extract() &&;
1904119041
constexpr void replace(container_type&&);
1904219042

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

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

0 commit comments

Comments
 (0)