Boost logo

Boost :

From: Vladimir Prus (ghost_at_[hidden])
Date: 2003-10-01 11:23:49

David Abrahams wrote:
> Samuel Krempp <krempp_at_[hidden]> writes:
> > If I got it right, Robert is reluctant to have deserialization require
> > default-constructability, even private
> I certainly agree that it's a nasty constraint. I think I can see
> only one way to achieve non-intrusive deserialization in portable C++:
> the deserialization function gets an address into which the object
> will be constructed with placement new.

I certainly miss something. You still have to either pass ctor parameters when
using placement new, or require the serialized type to have default ctor. Am
I wrong?

- Volodya

Boost list run by bdawes at, gregod at, cpdaniel at, john at