Commit f0c11d99 authored by Julius Nehring-Wirxel's avatar Julius Nehring-Wirxel
Browse files

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));
while (it != e)
r = U(t(R(*it)));
r = f(r, t(R(*it)));
return r;
Supports Markdown
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