
Bruno MartÃnez Aguerre wrote:
On Thu, 16 Dec 2004 23:52:45 +0100, JOAQUIN LOPEZ MU?Z <joaquin@tid.es> wrote:
I haven't tried using multi_index nor it's serialization capabilities yet. However, I do think there are practical uses of iterator serialization.
For one, recently there was a conversation between you and Robert Ramey about serialization of something like this:
container<SomeClass> v; SomeClass* p; //point to an element of v
IIRC, this wasn't currently supported by the serialization library. An iterator there instead of a pointer would be a workaround for this situation.
Actually that wasn't the problem case. The case you site above is indeed supported.
Second, I believe it would be useful for freezing a computation. Say I'm iterating over a multi_index, and I wan't to stop and remember where I was. If I can serialize the iterator of the current position along with the multi_index container, this can easily be achieved.
What do you think?
I think you should do this. Robert Ramey