Skip to content

Commit

Permalink
Fix call to try_emplace_impl
Browse files Browse the repository at this point in the history
  • Loading branch information
danieljames committed Mar 1, 2017
1 parent da370a6 commit b6e3f23
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions include/boost/unordered/unordered_map.hpp
Expand Up @@ -343,15 +343,18 @@ template <class K, class T, class H, class P, class A> class unordered_map
std::pair<iterator, bool> try_emplace(
BOOST_RV_REF(key_type) k, BOOST_FWD_REF(A0) a0)
{
return table_.try_emplace_impl(boost::move(k), boost::forward<A0>(a0));
return table_.try_emplace_impl(
boost::move(k), boost::unordered::detail::create_emplace_args(
boost::forward<A0>(a0)));
}

template <typename A0>
iterator try_emplace(
const_iterator hint, BOOST_RV_REF(key_type) k, BOOST_FWD_REF(A0) a0)
{
return table_.try_emplace_hint_impl(
hint, boost::move(k), boost::forward<A0>(a0));
hint, boost::move(k), boost::unordered::detail::create_emplace_args(
boost::forward<A0>(a0)));
}

template <typename A0, typename A1>
Expand Down

0 comments on commit b6e3f23

Please sign in to comment.