forked from lix-project/lix
Fix bug due to non-deterministic arg eval order
This commit is contained in:
parent
9ab07e99f5
commit
46f9dd56da
|
@ -121,9 +121,9 @@ struct WorkerProto<std::map<K, V>> {
|
||||||
std::map<K, V> resMap;
|
std::map<K, V> resMap;
|
||||||
auto size = readNum<size_t>(from);
|
auto size = readNum<size_t>(from);
|
||||||
while (size--) {
|
while (size--) {
|
||||||
resMap.insert_or_assign(
|
auto k = WorkerProto<K>::read(store, from);
|
||||||
WorkerProto<K>::read(store, from),
|
auto v = WorkerProto<V>::read(store, from);
|
||||||
WorkerProto<V>::read(store, from));
|
resMap.insert_or_assign(std::move(k), std::move(v));
|
||||||
}
|
}
|
||||||
return resMap;
|
return resMap;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue