diff --git a/include/boost/unordered/detail/foa/concurrent_table.hpp b/include/boost/unordered/detail/foa/concurrent_table.hpp index 4517ae5c..d51f5279 100644 --- a/include/boost/unordered/detail/foa/concurrent_table.hpp +++ b/include/boost/unordered/detail/foa/concurrent_table.hpp @@ -537,13 +537,13 @@ public: } template - BOOST_FORCEINLINE std::size_t erase(Key&& x) + BOOST_FORCEINLINE std::size_t erase(const Key& x) { - return erase_if(std::forward(x),[](const value_type&){return true;}); + return erase_if(x,[](const value_type&){return true;}); } template - BOOST_FORCEINLINE auto erase_if(Key&& x,F&& f)->typename std::enable_if< + BOOST_FORCEINLINE auto erase_if(const Key& x,F&& f)->typename std::enable_if< !is_execution_policy::value,std::size_t>::type { auto lck=shared_access();