Boost logo

Boost Users :

From: Boris (boriss_at_[hidden])
Date: 2007-02-22 17:59:56


On Thu, 22 Feb 2007 09:25:24 +0200, Joaquín Mª López Muñoz
<joaquin_at_[hidden]> 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? :)

Boris


Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net