
-----Original Message----- From: boost-users-bounces@lists.boost.org [mailto:boost-users- bounces@lists.boost.org] On Behalf Of Robert Ramey Sent: Tuesday, January 04, 2011 4:20 PM To: boost-users@lists.boost.org Subject: Re: [Boost-users] [serialization] polymorphic archivesindllsandpointer to derived problems
int _tmain(int argc, _TCHAR* argv[]) { std::ofstream f("c:\\test.xml");
boost::archive::polymorphic_oarchive & xml = boost::archive::polymorphic_xml_oarchive(f);
Base* b = new Derived(123);
// now serialization should proceed through
// note creation of derived type of archive asigned to the base type of archive !! polimorphic_oarchive interface
xml & BOOST_SERIALIZATION_NVP(b);
delete b;
return 0; }
Oops: realized I was top posting. Unfortunately the above doesn't work. It's the same problem. While the classes are registering with the DLL I don't think the executable is looking in the right place. I tried to pull the export.hpp file out of the executable thinking that might do it but it didn't help.