[Development] Conditional Deprecation Warnings
Thiago Macieira
thiago.macieira at intel.com
Wed Oct 16 17:24:45 CEST 2013
On quarta-feira, 16 de outubro de 2013 15:36:44, Olivier Goffart wrote:
> Is there really an advantage of using this, which cannot work with complex
> expression vs.
>
> #ifdef Q_OS_WIN
> Q_DECL_DEPRECATED_X("Not avaialble on windows")
> #endif
> void myFunction();
I don't want "not available" to be provided as warnings. The function should
simply *not* be available, causing a compilation error in all cases.
Compilation errors cannot be ignored.
The DEPRECATED_X macro should be used to provide information as to why it was
deprecated and especially what to do now.
e.g.:
Q_DECL_DEPRECATED_X("Use std::copy") void qSort(...);
--
Thiago Macieira - thiago.macieira (AT) intel.com
Software Architect - Intel Open Source Technology Center
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 190 bytes
Desc: This is a digitally signed message part.
URL: <http://lists.qt-project.org/pipermail/development/attachments/20131016/4b790338/attachment.sig>
More information about the Development
mailing list