|
Boost Users : |
Subject: Re: [Boost-users] mpi/serialization: broadcasting derivedclass through base pointer
From: MM (finjulhich_at_[hidden])
Date: 2012-01-20 16:53:59
> -----Original Message-----
> invoke that any time after the archive is created but before the
> "derived_one" is serialized.
> make sure you do it in the same place on saving an loading. I believe
> the
> following would work.
>
> binary_oarchive oa(...)
>
> oa.template register_type<derived_one>;
>
> ...
>
> binary_iarchive ia(...)
> ia.template register_type<derived_one>;
> ...
>
>
Matthias,
Is this something automatically done in boost::mpi::broadcast() or the
functions it calls?
My user code doesn't deal with the archive directly, it's boost::mpi's that
does.
Regards
MM
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