From 37ff9de0dbe9223e2b8a44d1178a9a9a9ea157cf Mon Sep 17 00:00:00 2001 From: joaquintides Date: Sat, 25 Mar 2023 17:35:37 +0100 Subject: [PATCH] fixed remaining errors in erase_if(foa::table&,...) --- 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 8840c9ce..c9a1c93d 100644 --- a/include/boost/unordered/detail/foa/table.hpp +++ b/include/boost/unordered/detail/foa/table.hpp @@ -422,14 +422,14 @@ public: template friend std::size_t erase_if(table& x,Predicate&& pr) { - std::size_t s=size(); + std::size_t s=x.size(); x.for_all_elements( [&](group_type* pg,unsigned int n,element_type* p){ if(pr(const_cast(type_policy::value_from(*p)))){ - x.erase(pg,n,p); + x.super::erase(pg,n,p); } }); - return std::size_t(s-size()); + return std::size_t(s-x.size()); } private: