Skip to content

Commit 1e51cbb

Browse files
committed
makes powerset iter == more correct
compares the combinations sub iterators as well as the set_size
1 parent 7bb5eea commit 1e51cbb

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

powerset.hpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,8 @@ namespace iter {
7171
}
7272

7373
bool operator==(const Iterator& other) const {
74-
return this->set_size == other.set_size;
74+
return this->set_size == other.set_size
75+
&& this->comb_iter == other.comb_iter;
7576
}
7677
};
7778

0 commit comments

Comments
 (0)