forked from boostorg/unordered
fixed UB with begin when using fast iteration
This commit is contained in:
committed by
Christian Mazakas
parent
15c9bc40f7
commit
ced8b45add
@@ -1471,7 +1471,7 @@ public:
|
|||||||
iterator begin()noexcept
|
iterator begin()noexcept
|
||||||
{
|
{
|
||||||
iterator it{arrays.groups,0,arrays.elements};
|
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;
|
return it;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user