
9 Feb
2007
9 Feb
'07
3:47 p.m.
Mark Wyszomierski wrote:
Hi, I'm using the boost serialization methods, they're great. I'm using some 3rd party classes that I don't have access to, so I can't add a serialize() member function to them. It's something like:
class CMyClass { int m_nWhatever; CSomeClass m_sc; // I am just using this from someone else's library....
void serialize(Archive &ar, const unsigned int version) { ar & version; ar & m_nWhatever; ar & m_sc; // fails!!! } }
how can I get around this?
See http://www.boost.org/libs/serialization/doc/tutorial.html#nonintrusiveversio... http://www.boost.org/libs/serialization/doc/serialization.html#free Jeff