9 Dec
2010
9 Dec
'10
2:18 p.m.
On Thu, Dec 9, 2010 at 3:11 PM, Frank Mori Hess
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