mirror of
https://git.mirrors.martin98.com/https://github.com/prusa3d/PrusaSlicer.git
synced 2025-07-14 05:11:49 +08:00
Fixed build on MacOS.
Based on information in https://stackoverflow.com/a/46115028, structured bindings in C++17 don't name variables, and because of that, it is impossible to capture these variables in lambda functions.
This commit is contained in:
parent
e17b57d6bd
commit
bfd83f925d
@ -703,7 +703,7 @@ void TriangleSelector::deserialize(const std::pair<std::vector<std::pair<int, in
|
|||||||
for (auto [triangle_id, ibit] : data.first) {
|
for (auto [triangle_id, ibit] : data.first) {
|
||||||
assert(triangle_id < int(m_triangles.size()));
|
assert(triangle_id < int(m_triangles.size()));
|
||||||
assert(ibit < data.second.size());
|
assert(ibit < data.second.size());
|
||||||
auto next_nibble = [&data, &ibit]() {
|
auto next_nibble = [&data, &ibit = ibit]() {
|
||||||
int n = 0;
|
int n = 0;
|
||||||
for (int i = 0; i < 4; ++ i)
|
for (int i = 0; i < 4; ++ i)
|
||||||
n |= data.second[ibit ++] << i;
|
n |= data.second[ibit ++] << i;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user