diff options
author | Ville Voutilainen <ville.voutilainen@qt.io> | 2024-06-16 16:31:46 +0300 |
---|---|---|
committer | Qt Cherry-pick Bot <cherrypick_bot@qt-project.org> | 2024-06-17 14:15:05 +0000 |
commit | 0f09806ca27c3426a1ff6a418811c2e9a1ee8b0e (patch) | |
tree | c6699638ddbdc1dd8a6656813e0753df5b352b25 /examples/widgets/widgets/calendarwidget/window.h | |
parent | 41b1821c2bb7bdfa6075a8bd823e61aee2a793bc (diff) |
Fix building qcompare code in MSVC in C++20 mode6.7
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
Reviewed-by: Giuseppe D'Angelo <giuseppe.dangelo@kdab.com>
(cherry picked from commit d2b4aec865bd834747cd824658e567b83bf081e6)
Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
(cherry picked from commit 788e9d7faa1ad5cc47cc87981af1620f783ec293)
Diffstat (limited to 'examples/widgets/widgets/calendarwidget/window.h')
0 files changed, 0 insertions, 0 deletions