Boost logo

Boost :

From: Peter Dimov (pdimov_at_[hidden])
Date: 2006-02-17 09:37:17


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.


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk