RoaringBitmap / CRoaring

Roaring bitmaps in C (and C++), with SIMD (AVX2, AVX-512 and NEON) optimizations: used by Apache Doris, ClickHouse, and StarRocks

Home Page:http://roaringbitmap.org/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Copying a Roaring64MapSetBitForwardIterator into an iterator from another map does not work

tudor opened this issue · comments

Roaring64Map m1;
auto it = m1.begin();
// ...
Roaring64Map m2;
it = m2.begin();

This leads to trouble, because Roaring64MapSetBitForwardIterator's copy assignment does not copy the map reference. So if you then use it.move(<value>), map_iter is going to point into the wrong map (m1).