FilterKey: fix ambiguous relational operators in C++20
The member operators weren't const, leading them to be ambiguous with
their reversed versions.
Fix by adding a private equals() function (to avoid churning the
implementation) and making the relational operators hidden friends.
Pick-to: 6.4 6.3 6.2 5.15
Task-number: QTBUG-104172
Change-Id: I97e74ef26fc2712d6f97c8f7d7bd61d6a625b42e
Reviewed-by: Paul Lemire <paul.lemire@kdab.com>
| commit | bcd20a74c9f2cd5920ecc5c1c0bb6d577db6cb50 |
| parent | 42f96fe2074bc63cfb8a4ae71a7262d554661da2 |
| author | Marc Mutz <marc.mutz@qt.io> |
| committer | Marc Mutz <marc.mutz@qt.io> |
| commit time | Tue, 12 Jul 2022 21:07:22 +0200 |