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

Avoid variable length array (vla) in profit of std::vector #205

Open
johannct opened this issue Sep 11, 2024 · 1 comment
Open

Avoid variable length array (vla) in profit of std::vector #205

johannct opened this issue Sep 11, 2024 · 1 comment

Comments

@johannct
Copy link
Member

In the lines starting at

double PDFzloc[pdfmap[11].size()];

several VLA are declared. VLA is actually not C++ legal, and -pedantic compilation would fail. It is a G++ extension, and seems to be ok with clang as well.
It turns out that a test using vectors segfaulted the CI in #201 so this was reverted, and the present issue serves as a reminder

@raphaelshirley
Copy link
Member

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

No branches or pull requests

2 participants