AMDG Ewald Peiszer wrote:
Robert Ramey schrieb:
Tweak your code to use the xml_archive. Then examine this. This will reveal what is out of sync.
The output is now
<?xml version="1.0" encoding="UTF-8" standalone="yes" ?> <!DOCTYPE boost_serialization>
<rp class_id="0" tracking_level="0" version="0"> <buflen>10</buflen> </rp> And this also works at the time of de-s11n.
If possible, however, I would rather use the text archive. So, I guess that in the textarchive one of the 0 is missing (class_id, tracking_level, version), but I don't have any idea why that could be the case.
Summary: if I use xml archive -> works if I use text archive -> the s11n operation prints only two 0 where there should be three -> does not work.
I filled in the missing parts of your code to make a complete program (attached) and it works for me with Boost 1.35.0 and MSVC 8.0 Express. In Christ, Steven Watanabe