Boost logo

Boost :

Subject: Re: [boost] [intrusive] rtti_base class proposition
From: Ireneusz Szpilewski (irek_at_[hidden])
Date: 2009-10-21 16:47:19


Scott McMurray wrote:
> 2009/10/21 Ireneusz Szpilewski <irek_at_[hidden]>:
>
>> Don't look at class hierarchy, look at object. It would be composed of
>> many
>> other subobjects (by means of multiple inheritance), just as a human body is
>> composed of different organs.
>>
>>
>
> How do you implement a heart transplant when you inherit from your
> heart, rather than contain it?
>
>
Before transplant:

class Me: private MyHeart
{
};

After transplant:

class Me: private SombodyElsesHeart
{
};

Ireneusz Szpilewski


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk