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

Build warning on Clang with -Wdeprecated-redundant-constexpr-static-def #254

Open
stephenberry opened this issue Jul 22, 2024 · 3 comments

Comments

@stephenberry
Copy link

out-of-line definition of constexpr static data member is redundant in C++17 and is deprecated

Enabling -Wdeprecated-redundant-constexpr-static-def with warnings as errors causes fast_float to not build on Clang.

Fixing this should make the code cleaner as well.

@lemire
Copy link
Member

lemire commented Jul 22, 2024

@stephenberry pull request invited!

@stephenberry
Copy link
Author

I think to support C++11 you would need macros around the old expressions. Do you want this?

@lemire
Copy link
Member

lemire commented Jul 23, 2024

The library is C++11 and we do not want to change this.

Using macros is acceptable.

@lemire lemire changed the title Build failure on Clang with -Wdeprecated-redundant-constexpr-static-def Build warning on Clang with -Wdeprecated-redundant-constexpr-static-def Aug 22, 2024
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

No branches or pull requests

2 participants