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:
Jason Rhinelander 2023-12-12 14:30:40 -04:00 committed by dr7ana
parent fcbfc1919d
commit cb39f64cae

View File

@ -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;
}