tst_QByteArrayView: stop using std::basic_string<signed char>
That's not a valid type for the Standard's string, because the Standard doesn't allow for std::char_traits<signed char> either. Pick-to: 6.8 Fixes: QTBUG-133689 Change-Id: Icd0d4928fa4cdc9d806bfffd4053f0eb1073e6b4 Reviewed-by: Marc Mutz <marc.mutz@qt.io> (cherry picked from commit 0cc41083c30c1474a862a34b59a4f755d4c51640) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
This commit is contained in:
parent
0fef016748
commit
5b10a1e8b4
@ -721,8 +721,12 @@ void tst_QByteArrayView::fromContainers() const
|
||||
fromContainer<Char, QVector<Char>>();
|
||||
fromContainer<Char, QVarLengthArray<Char>>();
|
||||
fromContainer<Char, std::vector<Char>>();
|
||||
if constexpr (std::is_same_v<Char, char>) {
|
||||
// std::basic_string only supports a few specific types
|
||||
// (std::char_traits requirement)
|
||||
fromContainer<Char, std::basic_string<Char>>();
|
||||
}
|
||||
}
|
||||
|
||||
void tst_QByteArrayView::comparison() const
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user