[Development] QML: Why C++11 scoped enums are not scoped in QML?

Thiago Macieira thiago.macieira at intel.com
Tue Jul 26 23:04:29 CEST 2016


Em terça-feira, 26 de julho de 2016, às 20:08:30 PDT, BogDan Vatra escreveu:
> scoped enums are declared differenty : enum *class* MyEnum :) 
> Even more, scoped enums in C++ must me used with fully qualified name
> *MyEnum a  = MyEnum.Val1* not *MyEnum a = Val1*, so a scoped enum is not
> exacly an enum
> :)

The point is that given "MyEnum", you can't tell whether it's scoped or not.

-- 
Thiago Macieira - thiago.macieira (AT) intel.com
  Software Architect - Intel Open Source Technology Center




More information about the Development mailing list