Boost logo

Boost Users :

From: Hughes, James (jhughes_at_[hidden])
Date: 2007-08-21 09:38:27


> -----Original Message-----
> From: boost-users-bounces_at_[hidden]
> [mailto:boost-users-bounces_at_[hidden]] On Behalf Of Peter Dimov
> Sent: 21 August 2007 14:28
> To: boost-users_at_[hidden]
> 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.


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