提交 f7fcc476 编写于 作者: B Behdad Esfahbod

[iter] Make hb_zip() take const references

上级 ede1a71b
......@@ -232,7 +232,7 @@ struct hb_zip_iter_t :
template <typename A, typename B,
hb_enable_if (hb_is_iterable (A) && hb_is_iterable (B))>
inline hb_zip_iter_t<typename A::iter_t, typename B::iter_t>
hb_zip (A& a, B &b)
hb_zip (const A& a, const B &b)
{ return hb_zip_iter_t<typename A::iter_t, typename B::iter_t> (a.iter (), b.iter ()); }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册