From 070e1637ebe3ee899d44b92c948e2e148c237e03 Mon Sep 17 00:00:00 2001 From: Thiago Macieira Date: Fri, 11 Apr 2014 13:26:48 -0700 Subject: Disable all C++11 rvalue refs with Dinkumware C++ library too Our code assumes that Q_COMPILER_REF_QUALIFIERS implies Q_COMPILER_RVALUE_REFS. Technically, it should check both macros, but the only point of ref qualifiers is to have both lvalue- and rvalue- reference member functions. We might then use std::move without a check to see if the standard library does provide it. Change-Id: Ia3eedd298c2218f100aee2e41bdea6e2c5c07a15 Reviewed-by: Marc Mutz Reviewed-by: Fawzi Mohamed Reviewed-by: Rafael Roquetto --- src/corelib/global/qcompilerdetection.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/corelib/global/qcompilerdetection.h') diff --git a/src/corelib/global/qcompilerdetection.h b/src/corelib/global/qcompilerdetection.h index 1f82425459..e93201f102 100644 --- a/src/corelib/global/qcompilerdetection.h +++ b/src/corelib/global/qcompilerdetection.h @@ -849,7 +849,10 @@ // header, so the feature is useless, even if the compiler supports // it. Disable. # undef Q_COMPILER_INITIALIZER_LISTS +// That libcpp doesn't have std::move either, so disable everything +// related to rvalue refs. # undef Q_COMPILER_RVALUE_REFS +# undef Q_COMPILER_REF_QUALIFIERS # endif # endif #endif // Q_OS_QNX -- cgit v1.2.3