Boost logo

Boost :

From: Gennadiy Rozental (gennadiy.rozental_at_[hidden])
Date: 2002-11-16 23:08:19


> Requiring a default constructor is a mistake. For one thing there are
often reasons not to provide a default constructor. For
> another, when serializing we might want different behavior. Provide a
factory method instead.
>
> Question, do classes without default constructors must be serializable --
if so, I would add this to my list of must have changes.

save_ptr facility cover provide a way to handle non-default constructible
class case

Gennadiy.


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