diff --git a/src/testlib/qcomparisontesthelper_p.h b/src/testlib/qcomparisontesthelper_p.h index afeb1088c46..735ea717993 100644 --- a/src/testlib/qcomparisontesthelper_p.h +++ b/src/testlib/qcomparisontesthelper_p.h @@ -65,17 +65,6 @@ QByteArray formatTypeWithCRef() #define CHECK_SINGLE_OPERATOR(Left, Right, Op, Result) \ do { \ - constexpr bool qtest_op_check_isImplNoexcept \ - = noexcept(std::declval() Op std::declval()); \ - if constexpr (!qtest_op_check_isImplNoexcept) { \ - QEXPECT_FAIL("", QByteArray("(" + formatTypeWithCRef() \ - + " " #Op " " + formatTypeWithCRef() \ - + ") is not noexcept").constData(), \ - Continue); \ - /* Ideally, operators should be noexcept, so warn if they are not. */ \ - /* Do not make it a hard error, because the fix is not always trivial. */ \ - QVERIFY(qtest_op_check_isImplNoexcept); \ - } \ static_assert(std::is_convertible_v() Op std::declval()), Result>); \ if constexpr (!std::is_same_v) { \