From fa18b3207df709072c9e4b8e717f59c75c494edc Mon Sep 17 00:00:00 2001 From: greg Date: Mon, 15 Mar 2021 18:57:20 -0400 Subject: [PATCH] small cleanup --- parallel_hashmap/phmap.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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