Thank you so much!! I moved the register calls just after the archive is
created and it worked! Thanks again!! You have literally saved me hours of
work!! Thanks for the prompt responses!
On 5/1/06, Robert Ramey
I use the vector "children" to hold pointers to both base and derived objects. I have tried registering the derived classes at the top of the serialize function call, with the use of ar.register(static_cast
(NULL)). That is probably the wrong place to put it. should be in a place that guarentees that it will be called. Try it just after the archive is created. If that does it, you can experiment with moving it around.
I have also tried using the BOOST_CLASS_EXPORT_GUID macro to register the classes in main. Yet, I still get a unregistered class exception. Any guidance would be greatly appreciated.
Note that its not enough to include BOOST_CLASS_EXPORT. It has to be included after the *archive.hpp classes that you're using. Double check that this is the case.
Robert Ramey
_______________________________________________ Boost-users mailing list Boost-users@lists.boost.org http://lists.boost.org/mailman/listinfo.cgi/boost-users