Johan Råde | 22 May 17:18

Re: [serialization] Handling of references into a std::map

Bernhard Maeder wrote:

> I'm trying to serialize a std::map along with some pointers that are referencing
> onto some of the Value elements of that map. What I see now, is that those
> references are not loaded correctly. 

You could save a reference to the map and the value of the key for the element.
When you load the archive, you can use that information to reconstruct the reference to the element.

--Johan Råde

Gmane