[iter] Fix reduce type deduction

This commit is contained in:
Behdad Esfahbod 2019-07-17 11:19:34 -07:00
parent 4552864c82
commit 576065b442
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 = decltype (hb_declval (Redu) (hb_declval (InitT), hb_declval (typename Iter::item_t)))>
typename AccuT = hb_remove_reference<decltype (hb_declval (Redu) (hb_declval (InitT), hb_declval (typename Iter::item_t)))>>
AccuT
operator () (Iter it)
{