[Interest] rvalue references on Mac OS X 10.10 and XCode 7

Thiago Macieira thiago.macieira at intel.com
Fri Sep 25 21:56:12 CEST 2015


On Friday 25 September 2015 12:51:29 Thiago Macieira wrote:
> # if (defined(Q_CC_CLANG) || defined(Q_CC_INTEL)) && defined(Q_OS_MAC) && 
> defined(__GNUC_LIBSTD__) \
>     && ((__GNUC_LIBSTD__-0) * 100 + __GNUC_LIBSTD_MINOR__-0 <= 402)
> // Apple has not updated libstdc++ since 2007, which means it does not have
> // <initializer_list> or std::move. Let's disable these features
> #  undef Q_COMPILER_INITIALIZER_LISTS
> #  undef Q_COMPILER_RVALUE_REFS
> #  undef Q_COMPILER_REF_QUALIFIERS
> // Also disable <atomic>, since it's clearly not there
> #  undef Q_COMPILER_ATOMICS
> # endif
> 
> In other words: stop using libstdc++ on OS X.

Support for libstdc++ on OS X will be removed in Qt 5.7. This was in the Qt 
5.5.0 release changelog.

-- 
Thiago Macieira - thiago.macieira (AT) intel.com
  Software Architect - Intel Open Source Technology Center




More information about the Interest mailing list