[serialization] Doc typo?

Hi, In the first code example in this section: http://www.boost.org/doc/libs/1_35_0/libs/serialization/doc/serialization.ht... 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

Your correction looks good to me - I'll roll it in. Robert Ramey Scott Howlett wrote:
Hi,
In the first code example in this section:
http://www.boost.org/doc/libs/1_35_0/libs/serialization/doc/serialization.ht...
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
participants (2)
-
Robert Ramey
-
Scott Howlett