
2 May
2007
2 May
'07
1:08 p.m.
Hughes, James wrote:
Hi All,
I am trying to serialise a vector of shared_ptr's which point to a base class which may be one of a number of derived class (Not polymorphic in that the base class has no virtual functions - its just supplies base functionality to derived classes)
I don't think this is generally possible. The default extended type info relies on dynamic cast for downcasting. Try making at least one function in the base class virtual. Robert Ramey