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 5 months ago committed by dr7ana
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…
Cancel
Save