From 8dbe380d6c42689610c021e18c333ae26fd65ea7 Mon Sep 17 00:00:00 2001 From: joaquintides Date: Sat, 25 Mar 2023 17:37:02 +0100 Subject: [PATCH] changed predicate arg to an lvalue ref to avoid ADL ambiguities --- include/boost/unordered/detail/foa/table.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/boost/unordered/detail/foa/table.hpp b/include/boost/unordered/detail/foa/table.hpp index c9a1c93d..3145a14d 100644 --- a/include/boost/unordered/detail/foa/table.hpp +++ b/include/boost/unordered/detail/foa/table.hpp @@ -420,7 +420,7 @@ public: using super::reserve; template - friend std::size_t erase_if(table& x,Predicate&& pr) + friend std::size_t erase_if(table& x,Predicate& pr) { std::size_t s=x.size(); x.for_all_elements(