fix find() for const containers

master
Daniel Kolesa 2015-06-16 22:54:04 +01:00
parent 2b05cb9297
commit ec44dbbfbd
1 changed files with 3 additions and 2 deletions

View File

@ -521,8 +521,9 @@ namespace detail {
}
ConstRange each_from(Chain *c, octa::Size h) const {
using RChain = octa::detail::HashChain<const E>;
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) {