Boost logo

Boost Users :

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


Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net