>> Just avoid serialization through a pointer, serialize either the
>> object or a reference to the object.
Thanks, Robert. Serializing through a reference seems to be the only viable solution in my case. However, I'm not able to make it work (I didn't find any specific information about references in the library documentation - except for
member variables) . For example:
A a;
...
A& aRef = a;
ia & BOOST_SERIALIZATION_NVP(aRef);; // Throws an exception in load_override