Skip to content

Commit 31f6808

Browse files
committed
Try to fix static_assert on windows
1 parent e719129 commit 31f6808

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

highs/ipm/hipo/factorhighs/Factorise.cpp

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -390,10 +390,12 @@ void Factorise::spawnNode(Int sn, const TaskGroupSpecial& tg) {
390390
// sn is head of the first subtree in a group of small subtrees; spawn all
391391
// of them
392392

393-
tg.spawn([this, it]() {
394-
for (Int i = 0; i < it->second.group.size(); ++i) {
395-
Int st_head = it->second.group[i];
396-
Int start = it->second.firstdesc[i];
393+
const NodeData* nd_ptr = &(it->second);
394+
395+
tg.spawn([this, nd_ptr]() {
396+
for (Int i = 0; i < nd_ptr->group.size(); ++i) {
397+
Int st_head = nd_ptr->group[i];
398+
Int start = nd_ptr->firstdesc[i];
397399
Int end = st_head + 1;
398400
for (Int sn = start; sn < end; ++sn) {
399401
processSupernode(sn, false);

0 commit comments

Comments
 (0)