Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
dune-common
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Timo Koch
dune-common
Commits
522d7460
Commit
522d7460
authored
15 years ago
by
Jorrit Fahlke
Browse files
Options
Downloads
Patches
Plain Diff
Document DUNE_DEPRECATED a little bit
[[Imported from SVN: r5623]]
parent
5c850069
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
common/deprecated.hh
+42
-1
42 additions, 1 deletion
common/deprecated.hh
with
42 additions
and
1 deletion
common/deprecated.hh
+
42
−
1
View file @
522d7460
...
...
@@ -3,8 +3,49 @@
#ifndef DUNE_DEPRECATED_HH
#define DUNE_DEPRECATED_HH
#ifndef DUNE_DEPRECATED
//! @addtogroup Common
//! @{
#if defined(DOXYGEN) or not defined(DUNE_DEPRECATED)
//! Mark some entity as deprecated
/**
* \code
*#include <dune/common/deprecated.hh>
* \endcode
*
* This is a preprocessor define which can be used to mark functions,
* typedefs, enums and other stuff depretcated. If something is marked
* deprecated, users are advised to migrate to the new interface, since it
* will probably be removed in the next release of Dune.
*
* DUNE_DEPRECATED currently works with g++ only. For other compilers it will
* be defined empty. This way the user will not get any deprecation warning,
* but at least his code still compiles (well, until the next Dune release,
* that is).
*
* Here are some examples how to mark different stuff deprecated:
* - Classes
* \code
class DUNE_DEPRECATED Class {};
class Class {} DUNE_DEPRECATED;
* \endcode
* This does not seem to work for template classes. If the class template
* has some essential member, maybe you can get away by marking that as
* deprecated instead.
* - Member functions
* \code
template<typename T> struct Class {
void frob() DUNE_DEPRECATED {}
};
template<typename T> struct Class {
void DUNE_DEPRECATED frob() {}
};
template<typename T> struct Class {
DUNE_DEPRECATED void frob() {}
};
* \endcode
*/
#define DUNE_DEPRECATED
#endif
//! @}
#endif
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment