|
Boost Users : |
Subject: Re: [Boost-users] [serialization] can I serialize concrete types that are not acessible where the archive is created
From: Robert Ramey (ramey_at_[hidden])
Date: 2010-09-28 17:22:53
Massaro Alessio wrote:
> Hi there!
>
> Does boost::serialization work with interfaces and static factory
> methods? (shown below)
>
> Note how the Concrete type is not actually known at the point where
> the archive is instantiated, and the two are actually in two different
> modules. In fact, I have indeed tried the following line in
> ConcreteType.cpp but the registration is not seen by the
> text_oarchive in DLL 2
>
> BOOST_CLASS_EXPORT_GUID(ConcreteType, "ConcreteType")
The above is basically on the right track. Trawl the documentation
for the explanation of special considerations related to DLLS and
particularly with regards to EXPORT.
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