23 Oct
2012
23 Oct
'12
5:31 p.m.
I've got a system where
class A
{
A();
A(const string&);
virtual ~A();
};
class C : public A
{
C();
C(const A&, float);
virtual ~C();
};
BOOST_CLASS_EXPORT( A )
BOOST_CLASS_EXPORT( C )
main()
{
...
const A* a = new a("stuff");
const C* c = new c(*a, 52.54390f);
{
ofstream ofs("dump.bin");
boost::archive::text_oarchive oa(ofs);
oa<>a2;
ia>>c2;
}
catch(boost::archive::archive_exception& ae)
{
cout<