mirror of
https://github.com/boostorg/unordered.git
synced 2025-07-30 03:17:15 +02:00
Fix call to try_emplace_impl
This commit is contained in:
@ -343,7 +343,9 @@ template <class K, class T, class H, class P, class A> class unordered_map
|
|||||||
std::pair<iterator, bool> try_emplace(
|
std::pair<iterator, bool> try_emplace(
|
||||||
BOOST_RV_REF(key_type) k, BOOST_FWD_REF(A0) a0)
|
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>
|
template <typename A0>
|
||||||
@ -351,7 +353,8 @@ template <class K, class T, class H, class P, class A> class unordered_map
|
|||||||
const_iterator hint, BOOST_RV_REF(key_type) k, BOOST_FWD_REF(A0) a0)
|
const_iterator hint, BOOST_RV_REF(key_type) k, BOOST_FWD_REF(A0) a0)
|
||||||
{
|
{
|
||||||
return table_.try_emplace_hint_impl(
|
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>
|
template <typename A0, typename A1>
|
||||||
|
Reference in New Issue
Block a user