diff --git a/src/hb-iter.hh b/src/hb-iter.hh index aa5eb9cba..a3390136c 100644 --- a/src/hb-iter.hh +++ b/src/hb-iter.hh @@ -569,7 +569,7 @@ HB_FUNCOBJ (hb_apply); template struct hb_sink_t { - hb_sink_t (Sink&& s) : s (s) {} + hb_sink_t (Sink s) : s (s) {} template diff --git a/src/test-iter.cc b/src/test-iter.cc index 17a1972b3..fe3c8f331 100644 --- a/src/test-iter.cc +++ b/src/test-iter.cc @@ -185,6 +185,10 @@ main (int argc, char **argv) | hb_sink (st) ; + + hb_iter (src) + | hb_sink (hb_array (dst)) + ; + + hb_iter (src) | hb_apply (&st) ;