Skip to content

Conversation

@TenzT
Copy link

@TenzT TenzT commented Oct 24, 2024

Since const-ness(aka the modifiers const ) on function bucket_type::find_entry_for and bucket_type::value_for makes data.begin() and data.end() return a const_iterator, instead of a const iterator to be return. sees std::vector<T,Allocator>::begin
you might come across

no viable conversion from returned value of type 'std::__list_const_iterator<std::pair<std::string, int>, void *>' to function return type 'bucket_iterator' (aka '__list_iterator<std::pair<std::string, int>, void *>')

Fix it easily by removing the const on line 23 and line 30 and then have fun again!
image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant