changed predicate arg to an lvalue ref to avoid ADL ambiguities

This commit is contained in:
joaquintides
2023-03-25 17:37:02 +01:00
parent 37ff9de0db
commit 8dbe380d6c

View File

@ -420,7 +420,7 @@ public:
using super::reserve;
template<typename Predicate>
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(