|
Boost : |
From: Robert Ramey (ramey_at_[hidden])
Date: 2003-10-23 12:48:14
>I'm completely at loss how to serialize classes which use the pimpl idiom.
>What I have is:
> class BlockFormula {
> public:
> [snip]
> private:
> struct data;
> boost::scoped_ptr<data> m_data;
> };
One thing I forgot to mention before is that you'll need to implement
non-intrusive serialization for boost::scoped_ptr<T>. The next
version - draft 13 includes the implementation and test/demo
for shared_ptr to be used as an example.
Robert Ramey
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk