Opened 7 years ago

Closed 15 months ago

#843 closed enhancement (wontfix)

Deprecated declarations warning macro

Reported by: nila Owned by: geos-devel@…
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 robe, 6 years ago

Milestone: GEOS FutureGEOS Fund Me

Milestone renamed

comment:2 by dbaston, 15 months ago

Resolution: wontfix
Status: newclosed

Project is now using C++14, we can use [[deprecated]] if needed.

Note: See TracTickets for help on using tickets.