On 23 March 2017 at 21:57, Thiago Macieira <[email protected]> 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.
_______________________________________________
Development mailing list
[email protected]
http://lists.qt-project.org/mailman/listinfo/development

Reply via email to