|
Boost : |
From: Thorsten Ottosen (tottosen_at_[hidden])
Date: 2006-02-17 19:17:43
David Abrahams wrote:
> Joaquín Mª López Muñoz <joaquin_at_[hidden]> writes:
>>2. It might be of interest to keep a partially recovered object.
>>For instance, think of the situation in which a container is being
>>marshalled thru a socket and you lose internet conectivity.
>
>
> That brings up an interesting point: you have to make sure, when
> writing deserialization for a class, that partial deserialization
> won't leave its instances with broken invariants.
Well, can't we think if deserialization as just another way of
constructing an object?
So if deserialization fails, it's like when construction fails and you
might throw or abort. No?
-Thorsten
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk