[Development] Two source incompatibilities in Qt 5.5 with Clang

Stephen Kelly steveire at gmail.com
Mon Mar 16 21:05:41 CET 2015


Thiago Macieira wrote:

> Because we want to benefit from the new code and remove the unnecessary
> #ifndef and Q_UNUSED. If we don't change the current macro, then we
> deprecate the old one and convert all the code to the new one

You could deprecate the old behavior.

#ifdef QT_BUILDING_QT || QT_DISABLE_DEPRECATED_BEFORE >= 0x050500 
#define USE_NEW_ASSERT
#endif

#ifdef USE_NEW_ASSERT
 // ...
#else
 // ...
#endif



Thanks,

Steve.





More information about the Development mailing list