[iter] Fix accumulate to accept const types
This commit is contained in:
parent
e21bdf500d
commit
7bcc5dfa97
|
@ -480,7 +480,7 @@ struct hb_reduce_t
|
||||||
|
|
||||||
template <typename Iter,
|
template <typename Iter,
|
||||||
hb_requires (hb_is_iterator (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
|
AccuT
|
||||||
operator () (Iter it)
|
operator () (Iter it)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue