Boost logo

Boost Users :

Subject: Re: [Boost-users] Boost.Serialization: Restoring object state (preventcreation of a new object)?
From: ray_at_[hidden]
Date: 2010-08-30 15:20:32


>> 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



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