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 <marc.mutz@kdab.com>
Reviewed-by: Fawzi Mohamed <fawzi.mohamed@digia.com>
Reviewed-by: Rafael Roquetto <rafael.roquetto@kdab.com>
bb10
Thiago Macieira 2014-04-11 13:26:48 -07:00 committed by The Qt Project
parent 94742faece
commit 070e1637eb
1 changed files with 3 additions and 0 deletions

View File

@ -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