Instead of duplicating code in unordered_map::emplace(), use
hash_table::emplace_unique().
Details
Details
- Reviewers
- None
Diff Detail
Diff Detail
Event Timeline
Comment Actions
This is very subtly broken. The requirements in the standard for emplace are
[unord.req] Table 102
a_eq.emplace(args)
Requires: : value_type shall be EmplaceConstructible into X from args.
Unfortunately __hash_table doesn't know that unordered_map has this "special" value_type, so it can't actually extract and construct the correct value_type from it. I'm going to change
this over the weekend. Once I've done some prep work this patch should be ready to go.
Comment Actions
I think this has been landed (or is no longer relevent) after all of the recent changes.