diff --git a/include/boost/unordered/concurrent_flat_map.hpp b/include/boost/unordered/concurrent_flat_map.hpp index 7a2095c5..6923e879 100644 --- a/include/boost/unordered/concurrent_flat_map.hpp +++ b/include/boost/unordered/concurrent_flat_map.hpp @@ -152,7 +152,7 @@ namespace boost { template std::size_t visit_all(F f) { - return table_.visit_all(std::move(f)); + return table_.visit_all(f); } template bool insert_or_assign(key_type const& k, M&& obj) @@ -182,22 +182,22 @@ namespace boost { template bool insert_or_visit(value_type const& obj, F f) { - return table_.insert_or_visit(obj, std::move(f)); + return table_.insert_or_visit(obj, f); } template bool insert_or_visit(value_type&& obj, F f) { - return table_.insert_or_visit(std::move(obj), std::move(f)); + return table_.insert_or_visit(std::move(obj), f); } template bool insert_or_visit(init_type const& obj, F f) { - return table_.insert_or_visit(obj, std::move(f)); + return table_.insert_or_visit(obj, f); } template bool insert_or_visit(init_type&& obj, F f) { - return table_.insert_or_visit(std::move(obj), std::move(f)); + return table_.insert_or_visit(std::move(obj), f); } template @@ -211,7 +211,7 @@ namespace boost { template void insert_or_visit(std::initializer_list ilist, F f) { - this->insert_or_visit(ilist.begin(), ilist.end(), std::move(f)); + this->insert_or_visit(ilist.begin(), ilist.end(), f); } size_type erase(key_type const& k) { return table_.erase(k); }