Boost logo

Boost :

From: Vladimir Prus (ghost_at_[hidden])
Date: 2003-12-04 05:34:34


Say I have class "Data" with private constructor. I serialize it like this

   binary_oarchive oa(...);
   Data data(....);
   oa << data;

Now, how do I deserialize it? I can't write

   Data data;
   ia >> data;

Since ctor is private. I would guess it's still possible to deserialize this
class, but I don't know how.

- Volodya


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