mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-07-18 04:08:02 -06: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
1 changed files with 1 additions and 1 deletions
|
@ -703,7 +703,7 @@ void TriangleSelector::deserialize(const std::pair<std::vector<std::pair<int, in
|
|||
for (auto [triangle_id, ibit] : data.first) {
|
||||
assert(triangle_id < int(m_triangles.size()));
|
||||
assert(ibit < data.second.size());
|
||||
auto next_nibble = [&data, &ibit]() {
|
||||
auto next_nibble = [&data, &ibit = ibit]() {
|
||||
int n = 0;
|
||||
for (int i = 0; i < 4; ++ i)
|
||||
n |= data.second[ibit ++] << i;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue