On 14 Dec 2010, at 01:00, Hicham Mouline wrote:
-----Original Message----- From: "Matthias Troyer" [troyer@phys.ethz.ch] Date: 13/12/2010 09:57 PM To: "Hicham Mouline" CC: boost-users@lists.boost.org Subject: Re: [Boost-users] mpi/serialization: broadcast function and the value argument
mpi::broadcast() appears to be incapable of sending the argument "value" in a polymorphic way, ie:
sender------------------- Base* base; If I call boost::mpi::broadcast(..., base, ...)
receiver----------------- Base* base; boost::mpi::broadcast(..., base, ...) This does not construct the most derived type of base on the heap and make base point there, as serialization would do.
Did you register the most derived type? Yes I have all types.
Did you test whether pointer deserialization works with other serialization archives? Matthias
I will test.
This will be crucial. If it does not work with, e.g. text or binary archives then it will not work with serialization either. Matthias