Opened 7 years ago
Closed 15 months ago
#843 closed enhancement (wontfix)
Deprecated declarations warning macro
Reported by: | nila | Owned by: | |
---|---|---|---|
Priority: | major | Milestone: | GEOS Fund Me |
Component: | Default | Version: | main |
Severity: | Unassigned | Keywords: | |
Cc: |
Description
I've seen the issue on deprecated declarations has been brought up before (eg. https://trac.osgeo.org/geos/ticket/815), and I'm not sure why it was closed without further ado. I can imagine it could be adventurous to remove deprecated code with short notice. Although, wouldn't it be good to have a macro (or a set of macros) issuing warnings when using deprecated code. In that way existing and future code depending on them can be easily noted and updated, e.g. using (IsSimpleOp::)
GEOS_DEPRECATED bool isSimple(const geom::LineString *geom);
…would issue a DEPRECATED warning.
I have experimented with a solution based on https://stackoverflow.com/a/21265197, and it seems to work fine on macOS at least for functions/methods.
Change History (2)
comment:1 by , 6 years ago
Milestone: | GEOS Future → GEOS Fund Me |
---|
comment:2 by , 15 months ago
Resolution: | → wontfix |
---|---|
Status: | new → closed |
Project is now using C++14, we can use [[deprecated]]
if needed.
Milestone renamed