diff --git a/src/corelib/global/qcomparehelpers.h b/src/corelib/global/qcomparehelpers.h index 18bc1b5e2e4..508da3fcd37 100644 --- a/src/corelib/global/qcomparehelpers.h +++ b/src/corelib/global/qcomparehelpers.h @@ -619,7 +619,7 @@ class totally_ordered_wrapper P ptr; public: - explicit constexpr totally_ordered_wrapper(P p) : ptr(p) {} + explicit constexpr totally_ordered_wrapper(P p) noexcept : ptr(p) {} constexpr P get() const noexcept { return ptr; } constexpr P operator->() const noexcept { return get(); }