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
parent
94742faece
commit
070e1637eb
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in New Issue