Fix swap
This commit is contained in:
parent
cae990b65e
commit
30090c9fbc
|
@ -405,7 +405,7 @@ public:
|
||||||
pairs.push_back(KeyValuePair { std::move(keyEl), ArrayElement { val, program } });
|
pairs.push_back(KeyValuePair { std::move(keyEl), ArrayElement { val, program } });
|
||||||
} else {
|
} else {
|
||||||
auto index = it - pairs.begin();
|
auto index = it - pairs.begin();
|
||||||
std::swap(pairs[index].value, ArrayElement { val, program });
|
pairs[index].value = ArrayElement { val, program };
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue