mirror of
https://git.mirrors.martin98.com/https://github.com/prusa3d/PrusaSlicer.git
synced 2025-08-15 20:15:59 +08:00
Try to fix build on msvc (perl xs)
This commit is contained in:
parent
b8b462df5e
commit
9606473c16
@ -53,7 +53,7 @@ public:
|
|||||||
I to,
|
I to,
|
||||||
const T &init,
|
const T &init,
|
||||||
MergeFn &&mergefn,
|
MergeFn &&mergefn,
|
||||||
AccessFn &&access,
|
AccessFn &&accessfn,
|
||||||
size_t granularity = 1
|
size_t granularity = 1
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
@ -61,7 +61,7 @@ public:
|
|||||||
tbb::blocked_range{from, to, granularity}, init,
|
tbb::blocked_range{from, to, granularity}, init,
|
||||||
[&](const auto &range, T subinit) {
|
[&](const auto &range, T subinit) {
|
||||||
T acc = subinit;
|
T acc = subinit;
|
||||||
loop_(range, [&](auto &i) { acc = mergefn(acc, access(i)); });
|
loop_(range, [&](auto &i) { acc = mergefn(acc, accessfn(i)); });
|
||||||
return acc;
|
return acc;
|
||||||
},
|
},
|
||||||
std::forward<MergeFn>(mergefn));
|
std::forward<MergeFn>(mergefn));
|
||||||
|
Loading…
x
Reference in New Issue
Block a user