I have another question..
 
When I want to export serialized data (derived class) do I have to use pointer or can I use 'referenced object'?

std::istringstream archive_stream(data);
boost::archive::text_iarchive archive(archive_stream);
 
baseclass *t;
archive & t;
 
or can I do:
 
baseclass t;
archive & t;