Boris ha escrito:
On Thu, 22 Feb 2007 09:25:24 +0200, Joaquín Mª López Muñoz
wrote: [...]The subject is a little tricky as it deals with safety in practical and theoretical terms, so if anything's still not clear enough please do not hesitate to come back to me.
I see. To put it in my own words: Any direct modification of items in a multi_index_container results in undefined behavior as there is no way for the multi_index_container to make sure that the modification is actually allowed for the defined indexes. While it might be possible for a developer to make sure himself that a modification is allowed there can never be a guarantee by the specification of multi_index_container as the question if it's really allowed depends on the implementation of multi_index_container. Is this correct now? :)
Almost :) You can do modifications if these do not affect the relevant keys of the element; it is modifications affecting the key(s) that are banned. Joaquín M López Muñoz Telefónica, Investigación y Desarrollo