Commit 740df0c1 authored by Julius NehringWirxel's avatar Julius NehringWirxel

Moved definition of U to correct place

parent 32602a1e
......@@ -34,9 +34,9 @@ template <class T = void, class RangeT, class TransformF, class ReduceF>
{
TG_CONTRACT(tg::begin(values) != tg::end(values) && "values must not be empty");
using R = same_or<T, element_type<RangeT>>;
using U = std::decay_t<decltype(f(t(R(*it)), t(R(*it))))>;
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));
it++;
......
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