Skip to content

QVector<QLatin1String>: Add version constraint

Yuriy Syrovetskiy requested to merge cblp/qtah:QVectorQLatin1String into master

The problem: when building against Qt 5.5 (the only version in Ubuntu 16.04), I get

In file included from /usr/include/x86_64-linux-gnu/qt5/QtCore/QVector:1:0,
                 from b_qvectorqlatin1string.cpp:5:
/usr/include/x86_64-linux-gnu/qt5/QtCore/qvector.h: In instantiation of ‘T QVector<T>::value(int) const [with T = QLatin1String]’:
/tmp/stack8739/qtah-cpp-0.6.0/b_qvectorqlatin1string.cpp:227:42:   required from here
/usr/include/x86_64-linux-gnu/qt5/QtCore/qvector.h:590:18: error: no matching function for call to ‘QLatin1String::QLatin1String()’
         return T();
                  ^
Edited by Yuriy Syrovetskiy

Merge request reports