Skip to content

Fix infinite recursion in BSTArray const reverse iterators - #73

Merged
qudix merged 1 commit into
libxse:mainfrom
jarari:fix/bstarray-const-reverse-iterators
Nov 17, 2026
Merged

qudix merged 1 commit into
libxse:mainfrom
jarari:fix/bstarray-const-reverse-iterators

Conversation

@jarari

@jarari jarari commented Nov 17, 2026

Copy link
Copy Markdown

BSTArray::rbegin() const and BSTArray::rend() const call themselves recursively. crbegin() and crend() delegate to those overloads, so both are affected as well.

Construct the const reverse iterators directly from end() and begin(), respectively. This mirrors the non-const overloads and preserves the public API and object layout.

@qudix
qudix merged commit 5bf0ee9 into libxse:main Nov 17, 2026
4 checks passed
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.

2 participants