
13 Dec
2010
13 Dec
'10
9:01 a.m.
My program consists of only one Dll which contains all classes and its serialization code. I implemented the serialization the way Robert suggested: in the header: class mytype { ... template<class Archive> serialize(Archive &ar, const unsigned int version); ...}; in the dll template class::serialize(text_iarchive & ar, const unsigned version){ ... ar << ... ... }; There is no serialization code in any header. I just call the serialization from the main program, but there is no duplicated code. What do I have to change to avoid the crash?