
19 Feb
2006
19 Feb
'06
3:15 a.m.
Thorsten Ottosen <tottosen@dezide.com> writes:
David Abrahams wrote:
Thorsten Ottosen <tottosen@dezide.com> 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