Skip to content

Commit

Permalink
Fix operator== comparison of Iterators. Must match on heap and index.
Browse files Browse the repository at this point in the history
Signed-off-by: J. Eric Ivancich <[email protected]>
  • Loading branch information
ivancich committed Jan 9, 2017
1 parent b8ed79a commit 37e5faa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion support/src/indirect_intrusive_heap.h
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ namespace crimson {
}

bool operator==(const Iterator& other) const {
return index == other.index;
return &heap == &other.heap && index == other.index;
}

bool operator!=(const Iterator& other) const {
Expand Down

0 comments on commit 37e5faa

Please sign in to comment.