|
Boost Users : |
From: Robert Ramey (ramey_at_[hidden])
Date: 2007-05-02 09:08:11
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
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