Fix std::set move semantics

This is, apparently, the only way to move an element out of a std::set.
pull/2228/head
Jason Rhinelander 6 months ago
parent 63c9bd6e63
commit 2f1917040c
No known key found for this signature in database
GPG Key ID: C4992CE7A88D4262

@ -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…
Cancel
Save