diff options
author | Fabian Kosmale <fabian.kosmale@qt.io> | 2021-09-21 11:13:06 +0200 |
---|---|---|
committer | Fabian Kosmale <fabian.kosmale@qt.io> | 2021-09-22 08:42:17 +0000 |
commit | f887a8eab25fd2cf3beee7527198f41ac15c8fcd (patch) | |
tree | 801b1718dddd6f63c61e6f9e4b5cd3ffd29a8f19 /tests | |
parent | 415ceb6a992e2b285e6d0892ed3c55f4a261f223 (diff) |
tst_qmetatype: Fix operator< detection for std::optional
Amends ca54b741d6edda24773137aacee229db31dd3585.
operator< is not constrained in MSVC's standard library, either.
Fixes: QTBUG-96690
Reviewed-by: Lars Knoll <lars.knoll@qt.io>
Change-Id: Ibcbb9e53a1f9e8b13786f6d8c01489c61d8d2d7f
(cherry picked from commit 01d94760d8d34e51e1442682fc151747943c7e25)
Reviewed-by: Jani Heikkinen <jani.heikkinen@qt.io>
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>); |