diff --git a/src/corelib/tools/qpair.h b/src/corelib/tools/qpair.h index b2217e4dd0..ae33d598d4 100644 --- a/src/corelib/tools/qpair.h +++ b/src/corelib/tools/qpair.h @@ -52,13 +52,13 @@ struct QPair template Q_DECL_CONSTEXPR QPair(const QPair &p) : first(p.first), second(p.second) {} template - QPair &operator=(const QPair &p) + Q_DECL_RELAXED_CONSTEXPR QPair &operator=(const QPair &p) { first = p.first; second = p.second; return *this; } #ifdef Q_COMPILER_RVALUE_REFS template Q_DECL_CONSTEXPR QPair(QPair &&p) : first(std::move(p.first)), second(std::move(p.second)) {} template - QPair &operator=(QPair &&p) + Q_DECL_RELAXED_CONSTEXPR QPair &operator=(QPair &&p) { first = std::move(p.first); second = std::move(p.second); return *this; } #endif