[Development] Qt 6: inline namespace Qt
Mutz, Marc
marc at kdab.com
Fri Sep 6 20:00:51 CEST 2019
On 2019-09-06 19:26, Thiago Macieira wrote:
> On Friday, 6 September 2019 09:04:09 PDT Giuseppe D'Angelo via
> Development
> wrote:
>> I was actually proposing option A, to avoid clashes. The Qt::
>> namespace
>> at the moment is simply too big to reasonably claim that there will be
>> no conflicts. A few examples that come into mind: Qt::horizontal,
>> Qt::vertical, Qt::[color name], Qt::SHIFT, Qt::Monday, Qt::XAxis.
>>
>> Option C does not work, a namespace is either entirely inline or it's
>> not.
>
> Option D: the inline namespace gets another name, something different
> from
> "Qt".
>
> Suggestion: Qt6
D was already taken, so it's Option E, but otherwise: Works for me.
That would even allow, eventually, to load both Qt 6 and Qt 7 into the
same executable (e.g. by way of plugins; and, yes, I realize that the
linker scripts already make this possible).
Thanks,
Marc
More information about the Development
mailing list