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

Change static const to static constexpr wherever possible #343

Merged
merged 1 commit into from
Oct 19, 2023

Conversation

Quuxplusone
Copy link
Contributor

Since we require C++11, most of these consts can be constexpr.

Two static const ld remain non-compile-time-evaluable because they depend on the runtime log function. One static const cld remains non-compile-time because std::complex<T> doesn't become constexpr until C++14.

Since we require C++11, most of these consts can be constexpr.

Two `static const ld` remain non-compile-time-evaluable because
they depend on the runtime `log` function. One `static const cld`
remains non-compile-time because `std::complex<T>` doesn't become
constexpr until C++14.
@zenorogue zenorogue merged commit 845237c into zenorogue:master Oct 19, 2023
6 of 23 checks passed
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