From 5fce8898e0be354a890c629516ecae76a3383a64 Mon Sep 17 00:00:00 2001 From: Behdad Esfahbod Date: Thu, 21 Jan 2021 12:14:20 -0700 Subject: [PATCH] [iter] Allow passing rvalue iters to hb_fill() --- src/hb-iter.hh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/hb-iter.hh b/src/hb-iter.hh index 981c5c218..f7018150e 100644 --- a/src/hb-iter.hh +++ b/src/hb-iter.hh @@ -922,7 +922,7 @@ HB_FUNCOBJ (hb_none); template 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;