Add `DUNE_NO_DEPRECATED_BEGIN` and `DUNE_NO_DEPRECATED_END` macros
These macros can be used to mark a block in which deprecation warnings are ignored. This can be useful for implementations of deprecated methods that call other deprecated methods or for testing deprecated methods in the testsuite.
See also the discussion in dune-grid!61 (merged)
Merge request reports
Activity
mentioned in merge request dune-grid!61 (merged)
Reassigned to @smuething
Milestone changed to DUNE 3.0.0
@gruenich The
_Pragma
operator is C++11 (and C99). Unknown pragma directives must be ignored by the compiler (though I think they result in warnings) [16.6 in my C++11 draft].So in the worst case, the compiler will still emit deprecation warnings, but the program will still work.
Added 1 commit:
-
f1826045 - Add
DUNE_NO_DEPRECATED_BEGIN
andDUNE_NO_DEPRECATED_END
macros
-
f1826045 - Add
mentioned in commit a3947bae
Mentioned in commit a3947bae
Please register or sign in to reply