|
Boost Users : |
From: Loïc Joly (loic.joly_at_[hidden])
Date: 2006-01-13 11:19:02
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
Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net