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

Specify size for prefixes static data #2216

Merged
merged 1 commit into from
Apr 7, 2021

Conversation

alexezeder
Copy link
Contributor

Resolves #2205, at least compile-time part of it.

A newer version of Clang should probably be used on CI to eliminate potential problems with compile-time tests in the future.

@vitaut vitaut merged commit 2e0d64c into fmtlib:master Apr 7, 2021
@vitaut
Copy link
Contributor

vitaut commented Apr 7, 2021

Thank you!

@alexezeder
Copy link
Contributor Author

alexezeder commented Apr 7, 2021

Hmm... but why are there no CI checks for this PR?.. 🤔

@vitaut
Copy link
Contributor

vitaut commented Apr 7, 2021

Because it's perfect =)

@denchat
Copy link
Contributor

denchat commented Apr 7, 2021

May I ask why static is not redundant with constexpr presenting?
Doesn't just constexpr automatically make it static, without saying static?

@vitaut
Copy link
Contributor

vitaut commented Apr 7, 2021

May I ask why static is not redundant with constexpr presenting?

These are data members so static is required.

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.

test/compile-test.cc:339:21: error: consteval function 'test_format not a constant expression.
3 participants