Boost logo

Boost Users :

Subject: [Boost-users] [serialization] unregistered class exception when using BOOST_CLASS_EXPORT_GUID
From: Ron Hashimshony (ronhash_at_[hidden])
Date: 2011-08-12 08:53:00


Hi all boost users,
We have been using boost.serialization for years. We want to move from 1.33
to 1.47 and encountered a problem.
Many of our classes are abstract, and the derived are defined with
BOOST_CLASS_EXPORT_GUID.
At one point in time, a new class (B) was added that derives from a class
that was defined with the BOOST_CLASS_EXPORT_GUID macro (A).
It all worked well in 1.33. In 1.47, when we get to de-serialize class A, we
get an exception of unregistered class.
We traced it down, and found out that if we remove the derived class (B), it
works fine, but this is not an option, and then the derived class (B) cannot
be de-serialized from the file...
If there any way to bypass this problem? was there a change made that broke
this
functionality?
Many Thanks!
Ron



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