Boost logo

Boost :

From: David Abrahams (dave_at_[hidden])
Date: 2006-02-18 22:15:45


Thorsten Ottosen <tottosen_at_[hidden]> writes:

> David Abrahams wrote:
>> Thorsten Ottosen <tottosen_at_[hidden]> writes:
>>
>>
>>>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?
>>
>>
>> No; the usual deserialization method starts with an
>> already-constructed object.
>
> In boost's framework, sure. In others, eg. one found in C#, each
> class has a special constructor.

But we're discussing Boost's framework (which also happens to support
the ctor method; it's just not the usual way).

-- 
Dave Abrahams
Boost Consulting
www.boost-consulting.com

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