|
Boost Users : |
Subject: Re: [Boost-users] mpi: sending/receiving different types
From: Matthias Troyer (troyer_at_[hidden])
Date: 2010-12-13 17:04:47
On Dec 9, 2010, at 3:11 PM, Frank Mori Hess wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> On Thursday 09 December 2010, Riccardo Murri wrote:
>> If all you have is a `const Base&` then slicing has already happened
>
> Why do you say that? Polymorphism can be done with references as well as
> with pointers.
If you give Boost.Serializatiion a reference to the base type, then how should it convert your base class object to a derived one?
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