Try adding BOOST_CLASS_EXPORT(ConcreteCondition) Robert Ramey Soumen wrote:
Hi,
I've following class hierarchy:
FilterCondition <---+--- CompositeCondition | +--- ConcreteCondition
FilterCondition is ABC. FilterCondition has certain data members which I need to serialize.
I already have another class "Table" for which serialization works perfectly. Now, I've added a pointer of type "FilterCondition" as a member to "Table". Say, the member name is "filterCond_".
Now, as soon as I add following line in Table::serialize(), I get a crash :
ar & filterCond_;
This happens even though I make body of FilterCondition::serialize(), CompositeCondition::serialize() and ConcreteCondition::serialize() empty.
In Table::serialize(), I've verified that filterCond_ is a valid pointer. I've declared FilterCondition as abstract through BOOST_CLASS_ABSTRACT macro as well.