|
Boost : |
From: Robert Ramey (ramey_at_[hidden])
Date: 2006-09-16 18:59:27
Neal Becker wrote:
> Can anyone see what's wrong with this example?
<snip>
The concept of "Export" is not necessary except for polymorphic types.
Application to non-polymorphic types currently fails in a confusing manner.
Fix - comment out the following:
//BOOST_SERIALIZATION_SHARED_PTR (limit_policy<double>)
//BOOST_CLASS_EXPORT_CHECK (limit_policy<double>)
//BOOST_CLASS_EXPORT_GUID (limit_policy<double>, "limit_policy<double>")
If you want to serialize derived classes - then make one of the functions
virtual and export the derived classes.
Robert Ramey
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk