[map] Fix copy assignment operator

This commit is contained in:
Behdad Esfahbod 2021-11-02 10:33:53 -06:00
parent bbda020cbc
commit 59d8f6c817
1 changed files with 1 additions and 1 deletions

View File

@ -44,7 +44,7 @@ struct hb_hashmap_t
hb_hashmap_t (const hb_hashmap_t& o) : hb_hashmap_t () { hb_copy (o, *this); }
hb_hashmap_t (hb_hashmap_t&& o) : hb_hashmap_t () { hb_swap (*this, o); }
hb_hashmap_t& operator= (const hb_hashmap_t&& o) { hb_copy (o, *this); return *this; }
hb_hashmap_t& operator= (const hb_hashmap_t& o) { hb_copy (o, *this); return *this; }
hb_hashmap_t& operator= (hb_hashmap_t&& o) { hb_swap (*this, o); return *this; }
hb_hashmap_t (std::initializer_list<hb_pair_t<K, V>> lst) : hb_hashmap_t ()