From 1217504a6020b11cc49761076679255cf4eac9fc Mon Sep 17 00:00:00 2001 From: Olivier Goffart Date: Sun, 16 Nov 2014 13:56:29 +0100 Subject: [PATCH] Add Q_DECL_RELAXED_CONSTEXPR to QPair Change-Id: I9456e820bb514f020b9f1d6c7d68547f92a1f8ff Reviewed-by: Thiago Macieira Reviewed-by: Marc Mutz --- src/corelib/tools/qpair.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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