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

[locale.categories] Promote remaining static const data members to constexpr #6767

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

Conversation

frederick-vs-ja
Copy link
Contributor

@frederick-vs-ja frederick-vs-ja commented Jan 12, 2024

See also #4862. After the changes there's no static const data members that are guaranteed to be usable in constant expressions but not constexpr.

The changes seemingly require these static data members to be implicitly inline variables, but [contents]/1 has already required an implementation to provide definitions for them, so the difference between plain const and constexpr is unobservable.

The last remain pieces are static data members of ctype_base - it's not strictly required that these members are required to be usable in constant expressions since mask may be a class type. LWG4037 is opened for this. Edit: LWG4037 has been resolved.

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.

None yet

1 participant