$include_dir="/home/hyper-archives/boost-users/include"; include("$include_dir/msg-header.inc") ?>
From: Scott Howlett (boost_at_[hidden])
Date: 2008-05-16 12:53:31
Hi,
In the first code example in this section:
http://www.boost.org/doc/libs/1_35_0/libs/serialization/doc/serialization.html#runtimecasting
there is the following snippet of code:
// method 2 : explicitly register base/derived relationship
boost::serialization::void_cast_register<derived, base>(
static_cast<base *>(NULL),
static_cast<derived *>(NULL)
)
I believe the two arguments to void_cast_register should be swapped.
(first arg is derived*, second arg is base*)
Regards,
Scott