-----Original Message----- From: boost-users-bounces@lists.boost.org [mailto:boost-users-bounces@lists.boost.org] On Behalf Of Peter Dimov Sent: 21 August 2007 14:28 To: boost-users@lists.boost.org Subject: Re: [Boost-users] Serialization newbie needs help
Jeff Flinn wrote:
Dominick Layfield wrote:
My problem is that I just don't see when pointer serialization would be a big win. But I can't tell if I just have a limited perspective. That's why I was genuinely hoping that you could provide a concrete example.
See http://www.adi.com/products_sim_ad_de.htm. This product maintains numerous connections between model ports. Among numerous other under-the-hood pointers, there are containers of connections which are pairs of boost::shared_ptr<Port>'s. The state of the entire system is saved/loaded to/from file using boost::serialization. This would be undoable without the ability to serialize pointers, and such a facility in my mind could not be called a serialization library.
You are the second person to cite an example of serializing shared_ptr. The question is about raw pointers.
Sorry, been using smart pointers for too long, and forgotten there are those other ones....but surely the same principles apply? This message (including any attachments) contains confidential and/or proprietary information intended only for the addressee. Any unauthorized disclosure, copying, distribution or reliance on the contents of this information is strictly prohibited and may constitute a violation of law. If you are not the intended recipient, please notify the sender immediately by responding to this e-mail, and delete the message from your system. If you have any questions about this e-mail please notify the sender immediately.