commit | f8fcfb263e197c27015eeea56761b2dc8138da91 | [log] [tgz] |
---|---|---|
author | Behdad Esfahbod <behdad@fb.com> | Thu Feb 14 11:03:29 2019 -0800 |
committer | Behdad Esfahbod <behdad@fb.com> | Thu Feb 14 11:03:29 2019 -0800 |
tree | b9f86be887ddb9ad1da4b2059af1e438da09b9df | |
parent | b530573ad9b30e06d5cecfd107941c573cd5d999 [diff] [blame] |
[iter] Accept pointers to hb_sink()
diff --git a/src/hb-iter.hh b/src/hb-iter.hh index 465929f..b6c9e2d 100644 --- a/src/hb-iter.hh +++ b/src/hb-iter.hh
@@ -388,6 +388,10 @@ template <typename Sink> hb_sink_t<Sink> operator () (Sink&& s) const { return hb_sink_t<Sink> (s); } + + template <typename Sink> hb_sink_t<Sink&> + operator () (Sink *s) const + { return hb_sink_t<Sink&> (*s); } } hb_sink HB_UNUSED;