|
Boost Users : |
From: RIVASSEAU Jean Noel (JN.RIVASSEAU_at_[hidden])
Date: 2006-04-07 05:25:47
Hi
I've tried to set up a small example that can reproduce the problem, however I cannot seem to succeed...
One thing is sure, the crash is due to the BSL and the base_object thing, because if I change this only thing, the program goes from running perfectly to crashing at launch.
Note that it is not really a problem of a class having multiple parents (this could happen if for example you use multiple inheritance). It is a problem of a class "switching parents".
Jean-Noël
-----Message d'origine-----
De : boost-users-bounces_at_[hidden] [mailto:boost-users-bounces_at_[hidden]] De la part de Robert Ramey
Envoyé : vendredi 7 avril 2006 06:25
À : boost-users_at_[hidden]
Objet : Re: [Boost-users] Serialization: crash atlaunchofprogram(duetoboost::serialization::base_object)
Note that there is a test test_..._mi which tests serialization with classes
which have multiple parents. So I would hope that this wouldn't be
a problem. But you never know
Robert Ramey
RIVASSEAU Jean Noel wrote:
> Ok, I will try to send a small example to the list tomorrow. In fact
> I think everything lies in the fact that using
> boost::serialization::base_object also registers the fact that the
> classes are parent and child. The serialization system needs to know
> that in order to make casts later.
>
> Somehow it probably does not like it when it tries to register
> several different classes as the parent of the same class.
>
> Jean-Noël
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