Skip to content

Commit 2ddd0e3

Browse files
committed
Linked list iterators are equality comparable, not 3-way comparable
1 parent 3ac64fa commit 2ddd0e3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

source/containers/linked_list_helper.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ struct list_iterator {
8888
}
8989
OPERATORS_ARROW_DEFINITIONS
9090

91-
friend auto operator<=>(list_iterator, list_iterator) = default;
91+
friend auto operator==(list_iterator, list_iterator) -> bool = default;
9292

9393
friend constexpr auto operator+(list_iterator const it, bounded::constant_t<1>) {
9494
return list_iterator<Container, Links, T>(it.m_links->next);

0 commit comments

Comments
 (0)