Skip to content

util: Fix iterators of BitArray and IntrusiveList#60

Open
MonsterDruide1 wants to merge 2 commits intoopen-ead:masterfrom
MonsterDruide1:bitarray-iterator
Open

util: Fix iterators of BitArray and IntrusiveList#60
MonsterDruide1 wants to merge 2 commits intoopen-ead:masterfrom
MonsterDruide1:bitarray-iterator

Conversation

@MonsterDruide1
Copy link

@MonsterDruide1 MonsterDruide1 commented Mar 17, 2026

Currently, a line like this causes cryptic error messages:
nn::util::BitArray::const_reverse_iterator it = arr.rbegin();

After two hours of debugging and working with C++ iterators, I found a fix: Declaring more of the elements required to build iterator_trait, and changing them to public to allow accessing them outside.


This change is Reviewable

@MonsterDruide1 MonsterDruide1 self-assigned this Mar 17, 2026
@MonsterDruide1 MonsterDruide1 changed the title util: Fix BitArray::reverse_iterators util: Fix iterators of BitArray and IntrusiveList Mar 17, 2026
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.

1 participant