Details
-
Bug
-
Resolution: Duplicate
-
P2: Important
-
None
-
6.7.0
-
None
Description
I think there is a bug with Qt Core when someone is including qcompare.h in their project.
The error is C2248 about Qt::partial_ordering::partial_ordering and Qt::weak_ordering::weak_ordering. Also seen here
C:\Qt\6.7.0\msvc2019_64\include\QtCore\qcompare.h:228: error: C2248: 'Qt::partial_ordering::partial_ordering': cannot access private member declared in class 'Qt::partial_ordering' C:\Qt\6.7.0\msvc2019_64\include\QtCore/qcompare.h(228): error C2248: 'Qt::partial_ordering::partial_ordering': cannot access private member declared in class 'Qt::partial_ordering' C:\Qt\6.7.0\msvc2019_64\include\QtCore/qcompare.h(189): note: see declaration of 'Qt::partial_ordering::partial_ordering' C:\Qt\6.7.0\msvc2019_64\include\QtCore/qcompare.h(65): note: see declaration of 'Qt::partial_ordering' C:\Qt\6.7.0\msvc2019_64\include\QtCore\qcompare.h:408: error: C2248: 'Qt::partial_ordering::partial_ordering': cannot access private member declared in class 'Qt::partial_ordering' C:\Qt\6.7.0\msvc2019_64\include\QtCore/qcompare.h(408): error C2248: 'Qt::partial_ordering::partial_ordering': cannot access private member declared in class 'Qt::partial_ordering' C:\Qt\6.7.0\msvc2019_64\include\QtCore/qcompare.h(189): note: see declaration of 'Qt::partial_ordering::partial_ordering' C:\Qt\6.7.0\msvc2019_64\include\QtCore/qcompare.h(65): note: see declaration of 'Qt::partial_ordering' C:\Qt\6.7.0\msvc2019_64\include\QtCore\qcompare.h:411: error: C2248: 'Qt::weak_ordering::weak_ordering': cannot access private member declared in class 'Qt::weak_ordering' C:\Qt\6.7.0\msvc2019_64\include\QtCore/qcompare.h(411): error C2248: 'Qt::weak_ordering::weak_ordering': cannot access private member declared in class 'Qt::weak_ordering' C:\Qt\6.7.0\msvc2019_64\include\QtCore/qcompare.h(377): note: see declaration of 'Qt::weak_ordering::weak_ordering' C:\Qt\6.7.0\msvc2019_64\include\QtCore/qcompare.h(220): note: see declaration of 'Qt::weak_ordering'
Attachments
Issue Links
- duplicates
-
QTBUG-126386 qcompare.h build error on MSVC
- Closed