From 81480feeb452318f93871a0fd0b5ad9cc75078c5 Mon Sep 17 00:00:00 2001 From: joaquintides Date: Fri, 12 May 2023 12:45:31 +0200 Subject: [PATCH] fixed regression at unprotected_emplace --- include/boost/unordered/detail/foa/concurrent_table.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/boost/unordered/detail/foa/concurrent_table.hpp b/include/boost/unordered/detail/foa/concurrent_table.hpp index 1b9ade9c..d66f090d 100644 --- a/include/boost/unordered/detail/foa/concurrent_table.hpp +++ b/include/boost/unordered/detail/foa/concurrent_table.hpp @@ -1090,7 +1090,7 @@ private: auto hash=this->hash_for(k); auto pos0=this->position_for(hash); - if(!this->find(k,pos0,hash))return false; + if(this->find(k,pos0,hash))return false; if(BOOST_LIKELY(this->size_ml)){ this->unchecked_emplace_at(pos0,hash,std::forward(args)...);