Skip to content

use constexpr instead of static const #13

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
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

use constexpr instead of static const #13

wants to merge 1 commit into from

Conversation

aminya
Copy link
Member

@aminya aminya commented Jul 4, 2022

atom#84

Description of the change

This uses constexpr instead of static const for compile-time variables

constexpr variable is guaranteed to have a value available at compile-time. whereas static const members or const variables could either mean a
compile-time value or a runtime value.

Verifications

Tests pass

Release Notes

N/A

constexpr variable is guaranteed to have a value available at compile 
time. whereas static const members or const variable could either mean a 
compile time value or a runtime value.
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.

1 participant