diff --git a/src/corelib/global/qglobal.h b/src/corelib/global/qglobal.h index 8bf0e8c6bc..ff0da86f65 100644 --- a/src/corelib/global/qglobal.h +++ b/src/corelib/global/qglobal.h @@ -1113,7 +1113,7 @@ namespace SwapExceptionTester { // insulate users from the "using std::swap" bel // Documented in ../tools/qalgorithm.qdoc template -inline void qSwap(T &value1, T &value2) +constexpr void qSwap(T &value1, T &value2) noexcept(noexcept(QtPrivate::SwapExceptionTester::checkSwap(value1))) { using std::swap;