Boost logo

Boost Users :

From: Robert Ramey (ramey_at_[hidden])
Date: 2007-02-08 14:50:03


pwm wrote:
> I am trying to use the boost serialization library to save an objects
> from a class heiarchy. I keep running into a stream error when
> deserializing a pointer from an xml archive. I have everything
> registered (that took a while, but I have that problem figured out, I
> think), and the serialization to an xml archive seems to work just
> fine. I have stepped through the deep nesting of calls to the
> exception and it is being thrown because the stream says it is bad
> when trying to read the end tag.

This would normally be due the asymettric serialization where one does:

ar << a

and later
ar >> a;
ar >> b; // uh-oh - read end tag - now its gone

Robert Ramey


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