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

Giuseppe D'Angelo dangelog at gmail.com
Tue Jul 26 17:41:01 CEST 2016

On Tue, Jul 26, 2016 at 5:33 PM, Thiago Macieira
<thiago.macieira at intel.com> wrote:
> This is all the engine sees. It's an enum.

But moc might help in this, extracting the relevant information
alongside the enum's metadata.

Also if std::is_enum<E>::value is true and std::is_convertible<E,
typename std::underlying_type<T>::type>::value is false, then the enum
is scoped. (Surely in C++something this might break if user-provided
conversions get allowed, but for now it's enough).

My 2 c,

Giuseppe D'Angelo

More information about the Development mailing list