this kind of code worked fine in Qt 5.4 but doesn't compile in 5.5. Is that a bug or is there a reason that this isn't supposed to work?
I get an error: qt_getEnumMetaObject: none of the 5 overloads could convert all the argument types
#include <QCoreApplication>
#include <QDebug>
enum {
test1 = 0
};
enum {
sun = (1 << test1)
};
enum {
bla = (1 << sun)
};
int main(int argc, char *argv[])
{
qDebug() << "test";
return a.exec();
}
#include <QCoreApplication>
#include <QDebug>
enum {
test1 = 0
};
enum {
sun = (1 << test1)
};
enum {
bla = (1 << sun)
};
int main(int argc, char *argv[])
{
QCoreApplication a(argc, argv);
qDebug() << "test";
return a.exec();
}
To copy to clipboard, switch view to plain text mode
Bookmarks