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

Fix IndexedVector methods and constructor #3821

Merged
merged 4 commits into from
Jan 6, 2023
Merged

Conversation

vlstill
Copy link
Contributor

@vlstill vlstill commented Jan 4, 2023

This fixes IndexedVector::pop_back and a constructor from safe_vector. These do not compile if instantiated, therefore it is not possible to call pop_back on IndexedVector. This is required for a bugfix in the Intel Tofino P4 compiler.

@vlstill vlstill requested a review from mihaibudiu January 4, 2023 15:22
@mihaibudiu
Copy link
Contributor

How about a test using these methods? Probably in gtest.

@vlstill vlstill changed the title Fix IndexedVector::pop_back and constructor Fix IndexedVector methods and constructor Jan 6, 2023
@vlstill
Copy link
Contributor Author

vlstill commented Jan 6, 2023

I've added some basic tests (mostly covering what I have fixed) and it uncovered one more bug in the original code which I have also fixed.

@mihaibudiu mihaibudiu merged commit d3092a1 into main Jan 6, 2023
@mihaibudiu mihaibudiu deleted the vstill/fix-indexed-vector branch January 6, 2023 15:35
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.

2 participants