Skip to content
This repository was archived by the owner on Dec 15, 2022. It is now read-only.

use constexpr instead of static const #84

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

aminya
Copy link
Contributor

@aminya aminya commented Dec 3, 2020

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 subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant