Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[ntcore] Fix moving outgoing queue to new period #5735

Merged
merged 1 commit into from
Oct 8, 2023

Conversation

PeterJohnson
Copy link
Member

std::remove_if() is destructive--it can assume the removed elements are not used, but NetworkOutgoingQueue needs them to stay intact to be moved to a different queue. Use std::stable_partition() instead.

Fixes #5734.

std::remove_if() is destructive--it can assume the removed elements are
not used, but NetworkOutgoingQueue needs them to stay intact to be moved
to a different queue. Use std::stable_partition() instead.
@PeterJohnson PeterJohnson requested a review from a team as a code owner October 8, 2023 06:45
@PeterJohnson PeterJohnson merged commit 2b63e35 into wpilibsuite:main Oct 8, 2023
26 checks passed
@PeterJohnson PeterJohnson deleted the nt-announce-order branch October 8, 2023 07:34
calcmogul pushed a commit to narmstro2020/allwpilib that referenced this pull request Oct 9, 2023
std::remove_if() is destructive--it can assume the removed elements are
not used, but NetworkOutgoingQueue needs them to stay intact to be moved
to a different queue. Use std::stable_partition() instead.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[ntcore] Failure to announce topics
1 participant