Commit f0c11d99 authored by Julius NehringWirxel's avatar Julius NehringWirxel

Fixed fold_right again.

parent 8d07ccaf
......@@ -38,11 +38,11 @@ template <class T = void, class RangeT, class TransformF, class ReduceF>
auto it = tg::begin(values);
using U = std::decay_t<decltype(f(t(R(*it)), t(R(*it))))>;
auto const e = tg::end(values);
auto r = t(R(*it));
U r = t(R(*it));
it++;
while (it != e)
{
r = U(t(R(*it)));
r = f(r, t(R(*it)));
it++;
}
return r;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment