Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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!

like image 680
Alan Turing Avatar asked May 08 '26 14:05

Alan Turing


1 Answers

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

like image 164
Alan Turing Avatar answered May 11 '26 04:05

Alan Turing