简体   繁体   中英

Qt support for C++0x enum class

Using Q_ENUMS I can now "register" with Qt an enum declared inside a class that inherists from QObject . This gives me a few cool reflection features for the enum .

I'm also really enjoying the type-safe enum class introduced in C++0x. I'm wondering if you know of any announcement made by Qt developers of plans for support for the enum class .

This question vaguely asks about Qt support of C++0x features in general. I'm asking specifically about enum class . I realize that since Qt is cross-platform and supports many compilers, support for C++0x will be SLOW to roll out, but enum class is a very nice simple improvement of the core language!

It appears that Qt 4.8 will have support for many major C++0x features (including enum class ) according to this blog post .

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM