From a5100a9d3553f675c480ba4e174c2e6299f036b2 Mon Sep 17 00:00:00 2001 From: joaquintides Date: Fri, 10 Mar 2023 19:55:51 +0100 Subject: [PATCH] fixed incomplete porting of PR187 --- include/boost/unordered/detail/foa/table.hpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/include/boost/unordered/detail/foa/table.hpp b/include/boost/unordered/detail/foa/table.hpp index bff1a021..2c14631a 100644 --- a/include/boost/unordered/detail/foa/table.hpp +++ b/include/boost/unordered/detail/foa/table.hpp @@ -261,7 +261,8 @@ public: iterator begin()noexcept { iterator it{this->arrays.groups,0,this->arrays.elements}; - if(!(this->arrays.groups[0].match_occupied()&0x1))++it; + if(this->arrays.elements&& + !(this->arrays.groups[0].match_occupied()&0x1))++it; return it; }