
one other thing... inside section "Runtime casting" there's 2nd method for registering derived class: boost::serialization::void_cast_register<derived, base>(); it seems that it was changed or something, but it doesn't work for me. vc ide shows that this function expects 2 arguments. I also tried to call it this way: boost::serialization::void_cast_register<derived, base>(this,this); but it also didn't seem to work i use boost 1.33.0
whoops, your right the documentation is out of sync with the code. Look into test_void_cast for hot its used. In your case try: The correct function prototype is: void_cast_register<Derived, Base>( static_cast<Derivied *>(NULL), static_cast<Base *>(NULL), );. I don't think this will solve your other problems though. Robert Ramey