diff options
author | Fabian Kosmale <fabian.kosmale@qt.io> | 2021-09-21 11:13:06 +0200 |
---|---|---|
committer | Qt Cherry-pick Bot <cherrypick_bot@qt-project.org> | 2021-09-21 20:21:20 +0000 |
commit | f92df090f5879531534b085dcc6dd96cc0e692da (patch) | |
tree | 92ec2cbf659650163e8b3d6248064cc728d82fb0 /tests | |
parent | 3e98ad97b56b90047fa96da4ab6429fbb556ec5d (diff) |
tst_qmetatype: Fix operator< detection for std::optional
Amends ca54b741d6edda24773137aacee229db31dd3585.
operator< is not constrained in MSVC's standard library, either.
Fixes: QTBUG-96690
Change-Id: Ibcbb9e53a1f9e8b13786f6d8c01489c61d8d2d7f
Reviewed-by: Lars Knoll <lars.knoll@qt.io>
(cherry picked from commit 01d94760d8d34e51e1442682fc151747943c7e25)
Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
Diffstat (limited to 'tests')
-rw-r--r-- | tests/auto/corelib/kernel/qmetatype/tst_qmetatype.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/auto/corelib/kernel/qmetatype/tst_qmetatype.cpp b/tests/auto/corelib/kernel/qmetatype/tst_qmetatype.cpp index 09a5125886..66040228b4 100644 --- a/tests/auto/corelib/kernel/qmetatype/tst_qmetatype.cpp +++ b/tests/auto/corelib/kernel/qmetatype/tst_qmetatype.cpp @@ -130,7 +130,9 @@ static_assert(!QTypeTraits::has_operator_less_than_v<std::map<int, NoOperators>> // std::optional static_assert(QTypeTraits::has_operator_equal_v<std::optional<QString>>); +static_assert(QTypeTraits::has_operator_less_than_v<std::optional<QString>>); static_assert(!QTypeTraits::has_operator_equal_v<std::optional<NoOperators>>); +static_assert(!QTypeTraits::has_operator_less_than_v<std::optional<NoOperators>>); // nested types static_assert(QTypeTraits::has_operator_equal_v<Nested>); |