28 Sep
2010
28 Sep
'10
9:22 p.m.
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