Boost logo

Boost Users :

From: David Abrahams (dave_at_[hidden])
Date: 2006-09-13 10:12:30


"Oliver Mutz" <omutz_at_[hidden]> writes:

> Loïc Joly wrote:
>> Nat Goodspeed a écrit :
>>>
>>> I haven't yet worked with a serialization framework smart enough to
>>> consider constructor arguments. (I haven't yet worked with the Boost
>>> Serialization library, either; forgive me if this is already a solved
>>> problem.)
>>
>> Boost::serialization requires a constructor with no arguments.
>
> That's not right I'm afraid.

And thank goodness.

> See the "Non-Default Constructors" part of the serialization library
> documentation for details. The problem still might be that you
> don't have the right data available while deserializing your object.

Then you can't usefully construct it. What's the point in making a
broken instance?

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

Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net