From 88c70b885d1e5582e12554d9534a371a3c34123e Mon Sep 17 00:00:00 2001 From: joaquintides Date: Sat, 25 Mar 2023 12:37:10 +0100 Subject: [PATCH] fixed previous commit --- include/boost/unordered/detail/foa/table.hpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/include/boost/unordered/detail/foa/table.hpp b/include/boost/unordered/detail/foa/table.hpp index 4ac77d26..fc5c90d0 100644 --- a/include/boost/unordered/detail/foa/table.hpp +++ b/include/boost/unordered/detail/foa/table.hpp @@ -423,10 +423,10 @@ public: friend std::size_t erase_if(table& x,Predicate&& pr) { std::size_t s=size(); - this->for_all_elements( - [&,this](group_type* pg,unsigned int n,element_type* p){ + x.for_all_elements( + [&](group_type* pg,unsigned int n,element_type* p){ if(pr(const_cast(type_policy::value_from(*p))){ - this->erase(pg,n,p); + x.erase(pg,n,p); } }); return std::size_t(s-size());