Re-fix C++20 ambiguous relational operators after adding QJsonValueConstRef

Change-Id: I573ffe2eb4a63b52a8e3982f6feb1b195913e538
Reviewed-by: Marc Mutz <marc.mutz@qt.io>
bb10
Allan Sandfeld Jensen 2022-03-31 11:34:18 +02:00 committed by Marc Mutz
parent 360f3de390
commit 30873cc720
1 changed files with 10 additions and 0 deletions

View File

@ -317,6 +317,16 @@ inline QJsonValue QCborValueConstRef::toJsonValue() const
return concrete().toJsonValue();
}
inline bool operator==(const QJsonValueConstRef &lhs, const QJsonValueRef &rhs)
{ return QJsonValue(lhs) == QJsonValue(rhs); }
inline bool operator!=(const QJsonValueConstRef &lhs, const QJsonValueRef &rhs)
{ return !(lhs == rhs); }
inline bool operator==(const QJsonValueRef &lhs, const QJsonValueConstRef &rhs)
{ return QJsonValue(lhs) == QJsonValue(rhs); }
inline bool operator!=(const QJsonValueRef &lhs, const QJsonValueConstRef &rhs)
{ return !(lhs == rhs); }
inline bool operator==(const QJsonValueRef &lhs, const QJsonValueRef &rhs)
{ return QJsonValue(lhs) == QJsonValue(rhs); }
inline bool operator!=(const QJsonValueRef &lhs, const QJsonValueRef &rhs)