diff --git a/src/corelib/tools/qatomicscopedvaluerollback_p.h b/src/corelib/tools/qatomicscopedvaluerollback_p.h index a5c1a2fa61..b744a70843 100644 --- a/src/corelib/tools/qatomicscopedvaluerollback_p.h +++ b/src/corelib/tools/qatomicscopedvaluerollback_p.h @@ -31,7 +31,7 @@ class QAtomicScopedValueRollback Q_DISABLE_COPY_MOVE(QAtomicScopedValueRollback) - constexpr std::memory_order store_part(std::memory_order mo) noexcept + static constexpr std::memory_order store_part(std::memory_order mo) noexcept { switch (mo) { case std::memory_order_relaxed: