[EOSIO/eos] Multi-index table: Compilation error when trying to modify element using secondary index. (#5335)

Hi all,

I’m trying to get and modify a row using a secondary index. This is the definition of the table itself:

«`c++
eosio::multi_index>> tokens;
«`

And here it is how I’m trying to modify the element:
«` c++
auto cid_index = tokens.get_index();
auto itr_token = cid_index.find(candidate_id_param);
tokens.modify(itr_token, _self, [&](auto& t) {
// Modifications
});
«`

I’m receiving the following compilation error related to the modify function:
«`
candidate function not viable: no known conversion
from ‘eosio::multi_index<14781000756567736320, conclubs::token, eosio::indexed_by<4730634643119807632, boost::multi_index::const_mem_fun >
>::index<4730634643119807632, boost::multi_index::const_mem_fun, 0, false>::const_iterator’ to ‘eosio::multi_index<14781000756567736320, conclubs::token, eosio::indexed_by<4730634643119807632, boost::multi_index::const_mem_fun > >::const_iterator’ for 1st argument
void modify( const_iterator itr, uint64_t payer, Lambda&& updater ) {
«`
Any ideas about it?

Thanks.