mirror of
https://github.com/boostorg/unordered.git
synced 2025-07-30 11:27:15 +02:00
changed predicate arg to an lvalue ref to avoid ADL ambiguities
This commit is contained in:
@ -420,7 +420,7 @@ public:
|
|||||||
using super::reserve;
|
using super::reserve;
|
||||||
|
|
||||||
template<typename Predicate>
|
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();
|
std::size_t s=x.size();
|
||||||
x.for_all_elements(
|
x.for_all_elements(
|
||||||
|
Reference in New Issue
Block a user