|
Boost Users : |
Subject: Re: [Boost-users] Serialization XML on windows and linux
From: Robert Ramey (ramey_at_[hidden])
Date: 2010-07-08 15:02:41
QUILLET Jean-Charles wrote:
> -----Message d'origine-----
> After a few investigations, it seems that my problem is related to
> the fact that I'm serializing polymorphic objects through a plugin
> system. I think the linux version should be the good one as no
> class_id is missing. It seems that there is something that might
> solve my problem in boost 1.4* reading this:
>
> http://www.boost.org/doc/libs/1_43_0/libs/serialization/doc/special.html#dlls
>
> I understand that I might have redundant serialization code in my
> application and in the shared librairies: one version might be called
> on windows and another one from linux (pure speculation) producing
> two versions of a serialized object.
>
> Does anyone have any experience with this ?
This is a situation I have been concerned about. New versions of
the library include code to address this. However, your code
might invoke an assert trap rather than failing as it does now. My
argument is that this is an improvement - not every one agrees
however.
My recommendation is
a) upgrade to lastest boost released
b) structure your code so that code is not repeated across DLLS
Robert Ramey
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