Boost logo

Boost Users :

Subject: [Boost-users] boost::serializable | Persisting a shared_ptr to XML archive
From: doug livesey (biot023_at_[hidden])
Date: 2011-07-02 13:33:46


Hi -- I'm trying to serialize an object in a boost::shared_ptr, here:
https://github.com/biot023/cell_biots/blob/master/include/game.h#L30
My problem is that the object isn't getting persisted, only the shared_ptr
(I think).
The result of this save is this: https://gist.github.com/1061413
Can anyone advise me on what I'm doing wrong?
I've included <boost/serialization/shared_ptr.hpp>, but I guess there's
something else I need to be doing.
Any & all help very gratefully received,
   Doug.



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