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

Replace variable length arrays with std::vector #1662

Merged
merged 1 commit into from
Dec 24, 2024

Conversation

ol-imorozko
Copy link
Contributor

Variable Length Arrays, while widely supported as compiler extensions are not part of the C++ standard. Replaced them with std::vector.

This PR extends Dimi1010's #1661

@ol-imorozko ol-imorozko requested a review from seladb as a code owner December 18, 2024 17:56
@ol-imorozko ol-imorozko changed the base branch from master to dev December 18, 2024 17:58
Variable Length Arrays, while widely supported as compiler extensions are not part of the C++ standard.
Replaced them with std::vector.
Copy link

codecov bot commented Dec 18, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 83.16%. Comparing base (f81ced2) to head (6d12b6c).
Report is 1 commits behind head on dev.

Additional details and impacted files
@@            Coverage Diff             @@
##              dev    #1662      +/-   ##
==========================================
- Coverage   83.16%   83.16%   -0.01%     
==========================================
  Files         277      277              
  Lines       48193    48193              
  Branches     9966     9970       +4     
==========================================
- Hits        40081    40078       -3     
+ Misses       7234     7220      -14     
- Partials      878      895      +17     
Flag Coverage Δ
alpine320 75.15% <ø> (ø)
fedora40 75.19% <ø> (ø)
macos-13 80.66% <ø> (ø)
macos-14 80.66% <ø> (+<0.01%) ⬆️
macos-15 80.62% <ø> (-0.01%) ⬇️
mingw32 70.87% <ø> (-0.05%) ⬇️
mingw64 70.86% <ø> (-0.03%) ⬇️
npcap 85.30% <ø> (-0.02%) ⬇️
rhel94 75.02% <ø> (-0.01%) ⬇️
ubuntu2004 58.61% <ø> (ø)
ubuntu2004-zstd 58.75% <ø> (+<0.01%) ⬆️
ubuntu2204 74.94% <ø> (-0.04%) ⬇️
ubuntu2204-icpx 61.39% <ø> (-0.05%) ⬇️
ubuntu2404 75.19% <ø> (ø)
unittest 83.16% <ø> (-0.01%) ⬇️
windows-2019 85.33% <ø> (-0.01%) ⬇️
windows-2022 85.36% <ø> (-0.01%) ⬇️
winpcap 85.33% <ø> (ø)
xdp 50.53% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Copy link
Collaborator

@Dimi1010 Dimi1010 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, with 1 minor comment.

Examples/DpdkExample-FilterTraffic/main.cpp Show resolved Hide resolved
@seladb seladb merged commit ad01cda into seladb:dev Dec 24, 2024
41 checks passed
@seladb
Copy link
Owner

seladb commented Dec 24, 2024

Thank you @ol-imorozko for this contribution, much appreciated! 🙏

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants