Re-fix C++20 ambiguous relational operators after adding QJsonValueConstRef
Change-Id: I573ffe2eb4a63b52a8e3982f6feb1b195913e538 Reviewed-by: Marc Mutz <marc.mutz@qt.io>bb10
parent
360f3de390
commit
30873cc720
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Reference in New Issue