diff --git a/parallel_hashmap/phmap.h b/parallel_hashmap/phmap.h index 163e925..f897e28 100644 --- a/parallel_hashmap/phmap.h +++ b/parallel_hashmap/phmap.h @@ -1293,13 +1293,13 @@ public: void insert(InputIt first, InputIt last) { this->reserve(this->size() + (last - first)); for (; first != last; ++first) - insert(*first); + emplace(*first); } template ::value, int> = 0> void insert(InputIt first, InputIt last) { for (; first != last; ++first) - insert(*first); + emplace(*first); } template = 0, RequiresInsertable = 0> @@ -3856,7 +3856,7 @@ struct FlatHashSetPolicy template static void construct(Allocator* alloc, slot_type* slot, Args&&... args) { phmap::allocator_traits::construct(*alloc, slot, - std::forward(args)...); + std::forward(args)...); } template