From ec44dbbfbd08b0447084702d70a3e2d7926ed1f9 Mon Sep 17 00:00:00 2001 From: q66 Date: Tue, 16 Jun 2015 22:54:04 +0100 Subject: [PATCH] fix find() for const containers --- octa/internal/hashtable.h | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/octa/internal/hashtable.h b/octa/internal/hashtable.h index d534736..248c809 100644 --- a/octa/internal/hashtable.h +++ b/octa/internal/hashtable.h @@ -521,8 +521,9 @@ namespace detail { } ConstRange each_from(Chain *c, octa::Size h) const { using RChain = octa::detail::HashChain; - return Range((RChain *)(p_data.first() + h + 1), - (RChain *)(p_data.first() + bucket_count()), c); + return ConstRange((RChain **)(p_data.first() + h + 1), + (RChain **)(p_data.first() + bucket_count()), + (RChain *)c); } void swap(Hashtable &ht) {