Qt 6.11 is out! See what's new in the release
blog
After Qt update, receiving lots of unusual compilation errors
-
For example, in the following code, I get:
"error: template argument for non-type template parameter must be an expression"// ... #include <boost/variant.hpp> int main(int argc, char *argv[]) { QCoreApplication a(argc, argv); boost::variant<int> b; // Error here return a.exec(); }I am on Qt 5.11.0 and my codebase was compiling fine before the update. Is anyone else having this problem?
Obviously, something as simple as this should compile fine. cpp.sh/3qyk7
-
For example, in the following code, I get:
"error: template argument for non-type template parameter must be an expression"// ... #include <boost/variant.hpp> int main(int argc, char *argv[]) { QCoreApplication a(argc, argv); boost::variant<int> b; // Error here return a.exec(); }I am on Qt 5.11.0 and my codebase was compiling fine before the update. Is anyone else having this problem?
Obviously, something as simple as this should compile fine. cpp.sh/3qyk7