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());