[libcxx-commits] [libcxx] [libc++] Fix insert() calling incorrect constructors (PR #146231)
Richard Smith via libcxx-commits
libcxx-commits at lists.llvm.org
Tue Jul 15 06:16:40 PDT 2025
================
@@ -543,7 +543,7 @@ template <class _Value, class _Hash, class _Pred, class _Alloc>
template <class _InputIterator>
inline void hash_multiset<_Value, _Hash, _Pred, _Alloc>::insert(_InputIterator __first, _InputIterator __last) {
for (; __first != __last; ++__first)
- __table_.__insert_multi(*__first);
+ __table_.__emplace_unique(*__first);
----------------
zygoloid wrote:
Likewise.
https://github.com/llvm/llvm-project/pull/146231
More information about the libcxx-commits
mailing list