[iter] Fix accumulate to accept const types

This commit is contained in:
Behdad Esfahbod 2019-07-28 20:55:50 -07:00
parent e21bdf500d
commit 7bcc5dfa97
1 changed files with 1 additions and 1 deletions

View File

@ -480,7 +480,7 @@ struct hb_reduce_t
template <typename Iter,
hb_requires (hb_is_iterator (Iter)),
typename AccuT = hb_remove_reference<decltype (hb_declval (Redu) (hb_declval (InitT), hb_declval (typename Iter::item_t)))>>
typename AccuT = hb_decay<decltype (hb_declval (Redu) (hb_declval (InitT), hb_declval (typename Iter::item_t)))>>
AccuT
operator () (Iter it)
{