Skip to content

constexpr should be mentioned and discussed on the const page #709

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

Open
ElectricRCAircraftGuy opened this issue Oct 25, 2019 · 0 comments
Open

Comments

@ElectricRCAircraftGuy
Copy link
Contributor

ElectricRCAircraftGuy commented Oct 25, 2019

constexpr is preferred over const for C++ compile-time constants, and should be mentioned and discussed here:

https://www.arduino.cc/reference/en/language/variables/variable-scope--qualifiers/const/

Here's some of the differences to be aware of:
https://stackoverflow.com/questions/13346879/const-vs-constexpr-on-variables/13347355#13347355

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

No branches or pull requests

2 participants