Boost logo

Boost Users :

Subject: Re: [Boost-users] mpi: sending/receiving different types
From: Riccardo Murri (riccardo.murri_at_[hidden])
Date: 2010-12-09 09:18:09


On Thu, Dec 9, 2010 at 3:11 PM, Frank Mori Hess <frank.hess_at_[hidden]> wrote:
> 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.
>

Yes, sorry - my original wording is indeed plain wrong...

What I meant to say is that there is no way to get information on the
"original" type, unless you resort to virtual methods or a
discriminating field.

Best regards,
Riccardo


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