Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix building qcompare code in MSVC in C++20 mode
MSVC quite incorrectly errors out saying that weak_ordering's conversion to partial_ordering cannot access the private constructor that takes the internal order. The problem goes away when the types are forward-declared before they are declared as friends. Fixes: QTBUG-126386 Change-Id: I50ad6d08ee648eb15109dde4a9ec9c753ee18e68 Pick-to: 6.7 Reviewed-by: Giuseppe D'Angelo <[email protected]> (cherry picked from commit d2b4aec) Reviewed-by: Qt Cherry-pick Bot <[email protected]>
- Loading branch information