
13 Jan
2006
13 Jan
'06
9:19 a.m.
Hello, I have to serialize some classes that look like this : struct A { vector<Base*> v; Base* get(int i); }; struct B1: A { Derived1* get(int i); }; ... struct B1000 : A { Derived1000* get(int i); }; (well, not exactly 1000, but definitively more than a couple, and no, I cannot change this design). I would like not to add serialization code to all of thoses classes, just to the base class, since all those classes are almost the same. Is this possible ? If I do not define anything for Bn classes, I get some archive_exception::unregistered_class exception. Regards, -- Loïc