Skip to content

Change back() method to iterator for 1450#1451

Merged
barendgehrels merged 2 commits intoboostorg:developfrom
narraki:feature/traverse-graph-fix
Feb 25, 2026
Merged

Change back() method to iterator for 1450#1451
barendgehrels merged 2 commits intoboostorg:developfrom
narraki:feature/traverse-graph-fix

Conversation

@narraki
Copy link
Copy Markdown
Contributor

@narraki narraki commented Feb 24, 2026

The issue is about absence of back() method in a ring. This commit solves the issue using different approach: such behavior is achieved using iterator difference by 1.

The issue is about absence of back() method in a ring. This commit solves the issue using different approach:
such behavior is achieved using iterator difference by 1.
@narraki
Copy link
Copy Markdown
Contributor Author

narraki commented Feb 24, 2026

All tests were passed successfully

Copy link
Copy Markdown
Collaborator

@barendgehrels barendgehrels left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

Comment thread include/boost/geometry/algorithms/detail/overlay/graph/traverse_graph.hpp Outdated
Chaned ring.back() to *(boost::end(ring) - 1) and then to range::back(ring)
@mloskot
Copy link
Copy Markdown
Member

mloskot commented Feb 25, 2026

FYI, I let the workflows run
image

I haven't been active in the library maintenance for quite some time now, but I chimed in out of curiosity being suspicious the issue may be due to regression in Boost.Iterator in 1.89, which is not, obviously.

@barendgehrels barendgehrels merged commit 32f2033 into boostorg:develop Feb 25, 2026
17 checks passed
@narraki narraki deleted the feature/traverse-graph-fix branch February 25, 2026 14:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants