Ticket #310 (closed task: fixed)
Unify prototypes of WKTReader and WKBReader constructor
| Reported by: | mloskot | Owned by: | strk |
|---|---|---|---|
| Priority: | major | Milestone: | 3.4.0 |
| Component: | Core | Version: | svn-trunk |
| Severity: | Annoyance | Keywords: | |
| Cc: |
Description
Constructor of both WKTReader and WKBReader accept GeometryFactory?, however both do it in different way:
- WKBReader accepts reference to const GeometryFactory? object
- WKTReader accepts pointer
This is inconsistent and requires extra work on client side. For example, if one wants to write simple function or class template that can be specialised by any of the two reader types it becomes a challenge.
I would suggest to change ctor of WKTReader to accept reference instead of pointer.
Change History
Note: See
TracTickets for help on using
tickets.
