From 37e5faa71a4448e7eded79cbbedaf7a3a3e51750 Mon Sep 17 00:00:00 2001 From: "J. Eric Ivancich" Date: Mon, 9 Jan 2017 15:26:03 -0500 Subject: [PATCH] Fix operator== comparison of Iterators. Must match on heap and index. Signed-off-by: J. Eric Ivancich --- support/src/indirect_intrusive_heap.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/support/src/indirect_intrusive_heap.h b/support/src/indirect_intrusive_heap.h index d18e93f..96d2228 100644 --- a/support/src/indirect_intrusive_heap.h +++ b/support/src/indirect_intrusive_heap.h @@ -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 {