Boost logo

Boost Users :

Subject: Re: [Boost-users] [serialization] unregistered_class exception thatwasn't occurring before
From: Igor R (boost.lists_at_[hidden])
Date: 2011-10-19 03:18:24


> was the "previous version"  made with the same version of the serialization
> library?

As I mentioned, the both versions were built with boost 1.47.

> What are the differences?  If the previous version didn't serialize via
> a pointer and the current one does, this could happen.  Otherwise
> I wouldn't expect this.

The serialization code didn't change at all. In the both versions it
serializes the structure I described in the previous message. The
classes changed a bit, but I can't realise how it could affect the
serialization.
The xml item made by the previous version look like this:
                                        <item>
                                                <which>5</which>
                                                <value class_id="64" tracking_level="0" version="1">
                                                        <px class_id="65" tracking_level="1" version="0" object_id="_116">
                                                                <info>etc...

The same item from an archive made by the new version:
                                        <item>
                                                <which>5</which>
                                                <value class_id="84" tracking_level="0" version="1">
                                                        <px class_id="85" tracking_level="1" version="0" object_id="_84">
                                                                <info>etc...

When it comes to <px class_id="65"...>, i.e. to the raw ptr within the
shared_ptr<>, it can't find the class.


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