Hi, the serialization docs about shared_ptr state that you have to call void_cast_register to use shared_ptr: ---------- This indicates that we're not quite done. [...] In this case we need only the latter function so we can replace the base object serialization with: // register the relationship between each derived class // its polymorphic base void_cast_register< boost::detail::sp_counted_base, boost::detail::sp_counted_base_impl
();
(http://boost.org/libs/serialization/doc/shared_ptr.html)
There are two issues with this:
a) The actual void_cast_register declaration has its parameters in the
reverse order:
----------
template