[vector] Add std::move to pop()

This was removed in 76fc27713f,
but I believe that was faultly. It was because of a bad move
implementation in the set.
This commit is contained in:
Behdad Esfahbod 2022-11-18 18:03:59 -07:00
parent 921f45f46d
commit 2892fc71e8
1 changed files with 1 additions and 1 deletions

View File

@ -364,7 +364,7 @@ struct hb_vector_t
Type pop ()
{
if (!length) return Null (Type);
Type v = arrayZ[length - 1];
Type v {std::move (arrayZ[length - 1])};
arrayZ[length - 1].~Type ();
length--;
return v;