#956 DUNE_DEPRECATED should have a variant with a message
Metadata
Property | Value |
---|---|
Reported by | Andreas Lauser (andreas.lauser@iws.uni-stuttgart.de) |
Reported at | Sep 28, 2011 17:01 |
Type | Bug Report |
Version | 2.1 |
Operating System | Unspecified / All |
Last edited by | Jö Fahlke (jorrit@jorrit.de) |
Last edited at | Oct 5, 2011 14:58 |
Closed by | Jö Fahlke (jorrit@jorrit.de) |
Closed at | Oct 5, 2011 14:58 |
Closed in version | Unknown |
Resolution | Implemented |
Comment |
Description
I am constantly annoyed by stuff which gets deprecated, but there is no indication of what is the new and shiny way to do things. Reading http://gcc.gnu.org/onlinedocs/gcc/Function-Attributes.html I recently stumbled over the fact that GCC supports a message parameter for attribute((deprecated)) and thought this is a great idea. Without further ado, here is my patch which adds a DUNE_DEPRECATED_MSG("message") macro to config.h. I'm not completely sure whether my auto%§$-foo is good enough and whether it also works for non-GCC compilers, but at least for me it works.