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

Attachment: signature.asc
Description: This is a digitally signed message part.

_______________________________________________
Development mailing list
Development@qt-project.org
http://lists.qt-project.org/mailman/listinfo/development

Reply via email to