[iter] Allow passing rvalue iters to hb_fill()

This commit is contained in:
Behdad Esfahbod 2021-01-21 12:14:20 -07:00
parent 6463ee02d6
commit 5fce8898e0
1 changed files with 1 additions and 1 deletions

View File

@ -922,7 +922,7 @@ HB_FUNCOBJ (hb_none);
template <typename C, typename V,
hb_requires (hb_is_iterable (C))>
inline void
hb_fill (C& c, const V &v)
hb_fill (C&& c, const V &v)
{
for (auto i = hb_iter (c); i; i++)
*i = v;