Boost logo

Boost :

From: Thorsten Ottosen (tottosen_at_[hidden])
Date: 2006-02-17 10:36:28


Peter Dimov wrote:
> 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.

Ok, sounds like we have a winner.

-Thorsten


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