neighbor_iterator::operator++() does not work with const Container
Library of generic, k-d tree multi-dimensional containers
Brought to you by:
bouhdevel
The neighbor_iterator::operator++() calls increment_neighbor(), which takes only Container type and therefore it does not compile in const methods. neighbor_cbegin is to be expected that does not change iterator reference, but may change iterator itself.
Anonymous
Thanks for your report Micheal. I will look into the issue.
Last edit: Sylvain Bougerel 2014-10-21
Hi Michał,
I've added appropriate unit tests and solved the issue, I believe. See v2.1.5 for a version containing the fix.
I'll be closing the bug report. If you find another issue let me know.
Works like a charm now. Thank you.