summaryrefslogtreecommitdiff
path: root/boost/pending/relaxed_heap.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'boost/pending/relaxed_heap.hpp')
-rw-r--r--boost/pending/relaxed_heap.hpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/boost/pending/relaxed_heap.hpp b/boost/pending/relaxed_heap.hpp
index 13f7af4c0e..1c80df6942 100644
--- a/boost/pending/relaxed_heap.hpp
+++ b/boost/pending/relaxed_heap.hpp
@@ -191,7 +191,10 @@ public:
return !smallest_value || (smallest_value->kind == largest_key);
}
- bool contains(const value_type& x) const { return groups[get(id, x)]; }
+ bool contains(const value_type& x) const {
+ return static_cast<bool>(groups[get(id, x)]);
+ }
+
void pop()
{