[Development] QList

Ville Voutilainen ville.voutilainen at gmail.com
Thu Mar 23 21:17:21 CET 2017


On 23 March 2017 at 21:57, Thiago Macieira <thiago.macieira at intel.com> wrote:
>> A base class that a user can name is detectable in multiple
>> inheritance scenarios.
>> Once you add such a base, it becomes hard to remove it, regardless of its
>> size.
>
> True, but remember I am proposing as a private base, so it's not exposed to
> others.
>
> Do you mean this:
>
> struct View { };
> struct String : private View { };
>
> struct UserCode : public String, public View {};
> // warning: direct base 'View' inaccessible in 'UserCode' due to ambiguity


Yes, such an example is certainly one way how even a private base is significant
for user code.



More information about the Development mailing list