mirror of
https://github.com/boostorg/unordered.git
synced 2025-05-11 21:44:01 +00:00
fixed UB with begin when using fast iteration
This commit is contained in:
parent
bd08e49255
commit
c50461528c
@ -1457,7 +1457,7 @@ public:
|
||||
iterator begin()noexcept
|
||||
{
|
||||
iterator it{arrays.groups,0,arrays.elements};
|
||||
if(!(arrays.groups[0].match_occupied()&0x1))++it;
|
||||
if(arrays.elements&&!(arrays.groups[0].match_occupied()&0x1))++it;
|
||||
return it;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user