diff --git a/include/boost/unordered/detail/foa.hpp b/include/boost/unordered/detail/foa.hpp index 223fd60d..27d48d57 100644 --- a/include/boost/unordered/detail/foa.hpp +++ b/include/boost/unordered/detail/foa.hpp @@ -1091,8 +1091,13 @@ public: --size_; } - template - std::size_t erase(const Key& x) + template< + typename Key, + typename std::enable_if< + !std::is_convertible::value&& + !std::is_convertible::value>::type* =nullptr + > + std::size_t erase(Key&& x) { auto it=find(x); if(it!=end()){