I have a multi_index container. Chan::Ptr is a shared_pointer to the object. The container has two indexes with object functions.
typedef multi_index_container<
Chan::Ptr,
indexed_by<
ordered_unique<const_mem_fun<Chan,string,&Chan::Channel> >,
ordered_non_unique<const_mem_fun<Chan,string,&Chan::KulsoSzam> > >
> ChanPtrLista;
Until I push_back objects only into the container, all searching in container is successful.
When I modify the values in the objects (example: Chan::Channel changes) index will be broken. Listing the container with an index, give back a wrong order. However the find functions isn't work anymore.
How can I re-index the container? ("rearragne" method do nothing with indexes).