
17 Feb
2006
17 Feb
'06
2:37 p.m.
Thorsten Ottosen wrote:
Dear All,
I have just added serialization to Boost.Ptr container. I briefly discussed an issue with Robert, namely that the current implementation calls clear() before reading the new values.
The alternative is to provide roll-back guarantee by default by creating a local container and swap() in the end. By default this would temporarily use more memory.
IMO we should go for the strong guarantee. Any thoughts?
I have been using basic-guarantee deserialization. It is easy for the client to deserialize a local container and swap if strong guarantee is desirable.