|
Boost : |
From: Robert Ramey (ramey_at_[hidden])
Date: 2005-01-25 16:33:44
This is a currently known problem with the library. It only became
apparrent with the implementation of serialization for indexed set.
The problem arises because the objects are deserialized to a temporary
variable then moved into the collection. So the pointers are not going to
point to objects final resting place.
In the future, I believe we will have a fix for this but for now I'm not
sure what to suggest.
Robert Ramey
Robert Shuchatowitz wrote:
> Hi,
> We have a class containing a vector of objects (not pointers to
> them) and a member class containing a vector of pointers to a
> subset of those objects. We have tried to serialize the classes, but
> after loading the subset, we see that the pointers in the subset are
> not set properly. That is, they do not point to the data in the
> master vector. Is there a way of doing this besides using new() for
> the objects in the master set?
>
> Thanks,
> robert
>
> _______________________________________________
> Unsubscribe & other changes:
> http://lists.boost.org/mailman/listinfo.cgi/boost
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk