Boost logo

Boost Users :

Subject: Re: [Boost-users] [serialization] Serializing const* to serialized data
From: Noah Roberts (roberts.noah_at_[hidden])
Date: 2009-11-06 14:00:18


In article <c72e33ce0911051651le8017fes28076be7778b87f5_at_[hidden]>,
emildotchevski_at_[hidden] says...
>
> On Thu, Nov 5, 2009 at 4:08 PM, Noah Roberts <roberts.noah_at_[hidden]> wrote:
> >
> >
> > Consider something like so:
> >
> > struct A
> > {
> >  ...?
> > };
> >
> > struct B
> > {
> >  std::list<A> items;
> > };
> >
> > struct C
> > {
> >  A const* ptr_to_item_in_B_items;
> > };
> >
> > Possible?  Impossible?
>
> Could you explain the semantics you intend for serializing
> ptr_to_item_in_B_items?

I want to recover the structure layout. If a C had a pointer to A item
X in C then when it reloads it should point at X again.


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