$include_dir="/home/hyper-archives/boost-users/include"; include("$include_dir/msg-header.inc") ?>
From: Juan Quiroz (juancq_at_[hidden])
Date: 2006-05-01 22:29:06
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 <ramey_at_[hidden]> wrote:
>
>
> 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<ASTNode*>(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_at_[hidden]
> http://listarchives.boost.org/mailman/listinfo.cgi/boost-users
>