Details
-
Bug
-
Resolution: Duplicate
-
P2: Important
-
6.9.0 Beta1
-
None
Description
Following code compiles fine Qt 5 & Qt 6.8.1, but not anymore with Qt 6.9.0 Beta1
test.cpp:
#include <QApplication> #include <QObject> #include <set> struct MyItem { int value; }; class MyClass : public QObject { Q_OBJECT signals: void itemsChanged(const std::set<MyItem>& items); }; #include "test.moc" // only necessary as we have a single file here int main(int argc, char* argv[]) { QApplication app(argc, argv); MyClass myClass; return QApplication::exec(); }
This results in a C2679 warning:
binary '<<': no operator found which takes a right-hand operand of type 'const MyItem' (or there is no acceptable conversion) C:\dev\dependencies\Qt\6.9.0\msvc2022_64\include\QtCore\qdebug.h
Attachments
Issue Links
- duplicates
-
QTBUG-132104 QVariant::fromValue fails with std::unordered_map
-
- Closed
-