Fix std::set move semantics

This is, apparently, the only way to move an element out of a std::set.
pull/2232/head
Jason Rhinelander 6 months ago committed by dr7ana
parent fcbfc1919d
commit cb39f64cae

@ -254,8 +254,8 @@ namespace llarp
return false; return false;
} }
for (auto& rc : rcs) while (!rcs.empty())
put_rc_if_newer(std::move(rc), timestamp); put_rc_if_newer(std::move(rcs.extract(rcs.begin()).value()), timestamp);
return true; return true;
} }

Loading…
Cancel
Save