#812 closed defect (fixed)
Fix overloaded virtual print in DirectedEdge*
Reported by: | goatbar | Owned by: | strk |
---|---|---|---|
Priority: | major | Milestone: | 3.6.1 |
Component: | Core | Version: | 3.6.0 |
Severity: | Unassigned | Keywords: | cleanup warnings |
Cc: |
Description
I would appreciate a review of this pull request:
https://github.com/libgeos/libgeos/pull/78
- Make print() method of child classes also const
- Make getDepthDelta() const
- Add virtual. For C++11 and newer this eventually should be overload.
e.g.
geos::geomgraph::DirectedEdge::print' hides overloaded virtual function [-Woverloaded-virtual]
Pretty minor changes like this in include/geos/geomgraph/DirectedEdge.h, but it's helpful if things compile as cleanly as possible so I can catch other issues more easily.
- std::string print(); + virtual std::string print() const;
Note:
See TracTickets
for help on using tickets.
In 4336: