Ticket #1752 (closed enhancement: fixed)
Make new method in OGREnvelope following const-correctness
|Reported by:||mloskot||Owned by:||rouault|
There have been new methods added to the OGREnvelope (r11894). I'd like to emphasise it should be important to try to make new API designed more carefully with const-correctness in mind.
My suggestion is to change prototypes of these two new methods to:
int Intersects(OGREnvelope const& other); int Contains(OGREnvelope const& other);
At early stage, such changes are harmless and completely transparent for existing code, but after some time, fixing code to follow const-correctness may be impossible. So, if we make it sooner then it's better.