Serialization: shared_ptr documentation

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

"Malte Clasen"
In this case the document refers to the implementation of shared_ptr rather than programs that use it.
Good call, I've corrected the document for the above.
In this case the document refers to the implementation of shared_ptr rather than programs that use it. So I think ths part is ok. Robert Ramey
Malte
participants (2)
-
Malte Clasen
-
Robert Ramey