mirror of
https://github.com/boostorg/unordered.git
synced 2025-07-31 20:04:29 +02:00
Get insert_tests passing under sanitizers
This commit is contained in:
@@ -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();
|
||||
|
@@ -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;
|
||||
|
||||
|
Reference in New Issue
Block a user