Get insert_tests passing under sanitizers

This commit is contained in:
Christian Mazakas
2022-09-27 14:25:57 -07:00
parent 892e437428
commit 450c915284
2 changed files with 3 additions and 2 deletions

View File

@@ -336,7 +336,7 @@ private:
}
else{
pc+=n;
p+=n-n0;
p+=static_cast<int>(n)-static_cast<int>(n0);
}
}
@@ -959,6 +959,7 @@ private:
{
auto pg=arrays_.groups;
auto p=arrays_.elements;
if(!p){return;}
for(std::size_t pos=0,last=arrays_.groups_size_mask+1;
pos!=last;++pos,++pg,p+=N){
auto mask=pg->match_really_occupied();

View File

@@ -878,7 +878,7 @@ namespace insert_tests {
using test::generate_collisions;
using test::limited_range;
#ifndef BOOST_UNORDERED_FOA_TESTS
#ifdef BOOST_UNORDERED_FOA_TESTS
boost::unordered::unordered_flat_map<test::movable, test::movable, test::hash,
test::equal_to, test::allocator2<test::movable> >* test_flat_map;