mirror of
https://github.com/oxen-io/lokinet.git
synced 2024-11-15 12:13:24 +00:00
Fix std::set move semantics
This is, apparently, the only way to move an element out of a std::set.
This commit is contained in:
parent
fcbfc1919d
commit
cb39f64cae
@ -254,8 +254,8 @@ namespace llarp
|
||||
return false;
|
||||
}
|
||||
|
||||
for (auto& rc : rcs)
|
||||
put_rc_if_newer(std::move(rc), timestamp);
|
||||
while (!rcs.empty())
|
||||
put_rc_if_newer(std::move(rcs.extract(rcs.begin()).value()), timestamp);
|
||||
|
||||
return true;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user