diff -r fe094d0687ad -r c27612f0eac0 src/functional.h --- a/src/functional.h Wed Jun 22 23:51:06 2022 +0300 +++ b/src/functional.h Sun Jun 26 19:44:45 2022 +0300 @@ -76,14 +76,16 @@ return std::back_inserter(vec); } +#if QT_VERSION < QT_VERSION_CHECK(6, 0, 0) + // In Qt6 QVector is now a QList instead, so we need to disable this // Constructs a back_inserter for QVector template auto makeDefaultInserter(QVector& vec) { return std::back_inserter(vec); } +#endif - // Constructs a back_inserter for QList template auto makeDefaultInserter(QList& vec) { @@ -110,12 +112,14 @@ using type = std::vector; }; +#if QT_VERSION < QT_VERSION_CHECK(6, 0, 0) // Changes the value type of QVector template struct ChangeContainerValueType, TT> { using type = QVector; }; +#endif // Changes the value type of QSet template