Boost logo

Boost Users :

From: Sohail Somani (s.somani_at_[hidden])
Date: 2007-03-28 15:42:11


> -----Original Message-----
> From: boost-users-bounces_at_[hidden]
> [mailto:boost-users-bounces_at_[hidden]] On Behalf Of Robert Ramey
> Sent: Wednesday, March 28, 2007 9:20 AM
> To: boost-users_at_[hidden]
> Subject: Re:
> [Boost-users][serialization]Assertion`new_cid==cid'failed-fail
> s on gcc,works on msvc
>
> Currently I only have the HEAD and RC_1_34 on my system
> and can't run a gcc test. I did build and compile and test
> with vc 7.1 and found no problems.
>
> Try serializing your test to xml archive. That will make
> the details a lot more visible.

Thanks for your suggestion. It seems the class_id's are reversed and
that tracking_level=0! Is that a clue? Wieeeeeerd!

XML output:

>From gcc 3.2:

<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE boost_serialization>
<boost_serialization signature="serialization::archive" version="3">
<b class_id="0" tracking_level="0" version="1">
        <px class_id="2" class_name="derived" tracking_level="1"
version="0" object_id="_0">
                <base class_id="1" tracking_level="1" version="0"
object_id="_1"></base>
                <id_>derived id</id_>
        </px>
</b>
</boost_serialization>

>From Visual C++ 7.1:

<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE boost_serialization>
<boost_serialization signature="serialization::archive" version="3">
<b class_id="0" tracking_level="0" version="1">
        <px class_id="1" class_name="derived" tracking_level="1"
version="0" object_id="_0">
                <base class_id="2" tracking_level="0"
version="0"></base>
                <id_>derived id</id_>
        </px>
</b>
</boost_serialization>

Thanks,

Sohail


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