Try to fix build on msvc (perl xs)

This commit is contained in:
tamasmeszaros 2022-12-15 16:06:56 +01:00
parent b8b462df5e
commit 9606473c16

View file

@ -53,7 +53,7 @@ public:
I to,
const T &init,
MergeFn &&mergefn,
AccessFn &&access,
AccessFn &&accessfn,
size_t granularity = 1
)
{
@ -61,7 +61,7 @@ public:
tbb::blocked_range{from, to, granularity}, init,
[&](const auto &range, T subinit) {
T acc = subinit;
loop_(range, [&](auto &i) { acc = mergefn(acc, access(i)); });
loop_(range, [&](auto &i) { acc = mergefn(acc, accessfn(i)); });
return acc;
},
std::forward<MergeFn>(mergefn));