Boost logo

Boost Users :

From: Hughes, James (jhughes_at_[hidden])
Date: 2007-08-21 03:54:59


> > > But if you could provide me an example of when pointer
> serialization > > shines, > > then I would say "Aha! Now I
> understand why Robert went to so much > > trouble to make
> this work.", and I could be at peace with the world
> > > again! :-)
> >
> > LOL - I haven't had time to make any real apps lately.
>
> So... no example at all?
>
> 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.
>

I have a tree like structure, where nodes are connected using
std::vectors of boost::shared_ptr's, and I also have a cache mechanism
in the root which also points to individual leafs in the tree using a
std::map.

This boost::serialises without any effort on my part (aside from writing
the basic serialise functions for each node type where I just serialise
the vector/map/members and everything else is done for me!!)

Is that a good example? Certainly would be a very common scenario, or am
I completely missing the point somewhere?

James

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