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 C++20 bug in axis constructor #746

Merged
merged 1 commit into from
May 31, 2024

Conversation

stephenswat
Copy link
Member

For reasons that I cannot fully explain, the default multi_bin constructor introduces a compiler error in C++20. This commit removes that constructor which seems to repair the situation.

For reasons that I cannot fully explain, the default `multi_bin`
constructor introduces a compiler error in C++20. This commit removes
that constructor which seems to repair the situation.
Copy link
Contributor

@niermann999 niermann999 left a comment

Choose a reason for hiding this comment

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

Funny

@krasznaa
Copy link
Member

I imagine it's the constexpr-ness of the default constructor that causes issues. Could it be that the constructor just cannot be a constexpr? (And GCC for whatever reason only freaks out about it in C++20 mode...)

@stephenswat
Copy link
Member Author

I suspect it probably has something to do with P0935R0, but I'm not sure. Either way, we can fix it and enable a C++20 CI job in the future.

@stephenswat stephenswat merged commit b2b5baf into acts-project:main May 31, 2024
16 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working priority: medium medium priority
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants