Menu

#3 neighbor_iterator::operator++() does not work with const Container

2.1.5
closed
None
2014-10-22
2014-08-17
No

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.

Discussion

  • Sylvain Bougerel

    Thanks for your report Micheal. I will look into the issue.

     

    Last edit: Sylvain Bougerel 2014-10-21
  • Sylvain Bougerel

    • status: open --> accepted
    • assigned_to: Sylvain Bougerel
     
  • Sylvain Bougerel

    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.

     
  • Sylvain Bougerel

    • status: accepted --> closed
    • Milestone: 2.1.4 --> 2.1.5
     
  • Michał Garapich

    Works like a charm now. Thank you.

     

Anonymous
Anonymous

Add attachments
Cancel