typedef typename bucket_data::iterator bucket_iterator;
bucket_iterator find_entry_for(Key const& key) const
{
return std::find_if(data.begin(), data.end(), [&](bucket_value const& item) {
return item.first == key;
});
}
This returns a const_iterator, the compiler issues an error because it can't convert between the two.
This returns a const_iterator, the compiler issues an error because it can't convert between the two.