boost::serialization of a template class
Hello,
I have a base class:
class base {...};
and a derived class:
class derived : public base {...};
and a template class:
template <class T>
class ElementList {
vector
I create somwhere in my program several "derived" elements (which are serialized at this point)
After, I put them in the m_Elements vector of myclass (hérited from ElementList<base>). So, the "derived" are stored as "base" elements and the problem is that they are serialized as "base" elements and not "derived" elements.
Have you got an idea of how I can solve this issue?
this is described in the documentation under serialization of pointers Robert Ramey
participants (2)
-
Robert Ramey
-
Takeo