Код: Выделить всё
C:\msys64\clang64\include\qt6\QtCore\qabstractitemmodel.h:128: error: call to constructor of 'Qt::totally_ordered_wrapper' is ambiguous
In file included from C:/msys64/clang64/include/qt6/QtWidgets/QComboBox:1:
In file included from C:/msys64/clang64/include/qt6/QtWidgets/qcombobox.h:9:
In file included from C:/msys64/clang64/include/qt6/QtWidgets/qabstractitemdelegate.h:9:
In file included from C:/msys64/clang64/include/qt6/QtWidgets/qstyleoption.h:30:
C:/msys64/clang64/include/qt6/QtCore/qabstractitemmodel.h:128:67: error: call to constructor of 'Qt::totally_ordered_wrapper' is ambiguous
128 | constexpr inline QModelIndex() noexcept : r(-1), c(-1), i(0), m(nullptr) {}
| ^ ~~~~~~~
C:/msys64/clang64/include/qt6/QtCore/qcomparehelpers.h:1095:26: note: candidate constructor
1095 | Q_IMPLICIT constexpr totally_ordered_wrapper(std::nullptr_t)
| ^
C:/msys64/clang64/include/qt6/QtCore/qcomparehelpers.h:1098:24: note: candidate constructor
1098 | explicit constexpr totally_ordered_wrapper(P p) noexcept : ptr(p) {}
| ^
Код: Выделить всё
C:\msys64\clang64\include\c++\v1\__utility\exchange.h:32: error: incompatible integer to pointer conversion assigning to 'QPersistentModelIndexData *' from 'int'
In file included from C:/msys64/clang64/include/qt6/QtWidgets/QAbstractButton:1:
In file included from C:/msys64/clang64/include/qt6/QtWidgets/qabstractbutton.h:7:
In file included from C:/msys64/clang64/include/qt6/QtWidgets/qtwidgetsglobal.h:7:
In file included from C:/msys64/clang64/include/qt6/QtGui/qtguiglobal.h:7:
In file included from C:/msys64/clang64/include/qt6/QtCore/qglobal.h:15:
In file included from C:/msys64/clang64/include/c++/v1/utility:263:
C:/msys64/clang64/include/c++/v1/__utility/exchange.h:32:21: error: incompatible integer to pointer conversion assigning to 'QPersistentModelIndexData *' from 'int'
32 | __obj = std::forward(__new_value);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
C:/msys64/clang64/include/qt6/QtCore/qabstractitemmodel.h:198:18: note: in instantiation of function template specialization 'std::exchange' requested here
198 | : d(std::exchange(other.d, nullptr)) {}
| ^
Подробнее здесь: https://stackoverflow.com/questions/796 ... s-in-clang
Мобильная версия