![]() |
KASKADE 7 development version
|
Convenience class for marking deprecated functions. A static object of this class can be created inside deprecated functions. It will output a warning message to stderr if the deprecated function is called, but only once. More...
#include <deprecation.hh>
Public Member Functions | |
| Deprecated (std::string const &comment, int year) | |
| Constructor. | |
Convenience class for marking deprecated functions. A static object of this class can be created inside deprecated functions. It will output a warning message to stderr if the deprecated function is called, but only once.
After the given grace period is passed, the program is aborted.
Definition at line 34 of file deprecation.hh.
| Kaskade::Deprecated::Deprecated | ( | std::string const & | comment, |
| int | year ) |
Constructor.
| comment | The comment to be written to stderr along with a generic warning |
| year | the grace period |