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

remove out-of-line defns of constexpr static data members under c++17 #268

Conversation

yfeldblum
Copy link
Contributor

Address warnings of this form under c++17 when building with -Werror -Wdeprecated:

fast_float/float_common.h:446:58: error: out-of-line definition of constexpr static data member is redundant in C++17 and is deprecated [-Werror,-Wdeprecated]
constexpr double binary_format_lookup_tables<double, U>::powers_of_ten[];
                                                         ^

Address warnings of this form under c++17 when building with `-Werror -Wdeprecated`:
```
fast_float/float_common.h:446:58: error: out-of-line definition of constexpr static data member is redundant in C++17 and is deprecated [-Werror,-Wdeprecated]
constexpr double binary_format_lookup_tables<double, U>::powers_of_ten[];
                                                         ^
```
@yfeldblum yfeldblum force-pushed the fix-deprecated-cxx17-cexpr-static-data-defn-out-of-line-redundant branch from a39888f to 159589d Compare August 30, 2024 15:31
@yfeldblum yfeldblum changed the title remove out-of-line definitions of constexpr static data members under c++17 remove out-of-line defns of constexpr static data members under c++17 Aug 30, 2024
@lemire
Copy link
Member

lemire commented Aug 30, 2024

Looks reasonable. Let us run the tests.

@yfeldblum
Copy link
Contributor Author

The formatting tests failed but, from the error messages, I didn't see how this is related to the PR. Is there something I need to do here?

@lemire
Copy link
Member

lemire commented Aug 31, 2024

@yfeldblum Looks fine. I will review and merge later.

@lemire
Copy link
Member

lemire commented Aug 31, 2024

Merging. This will part of the next release.

@lemire lemire merged commit c8abf94 into fastfloat:main Aug 31, 2024
38 of 39 checks passed
@dalle dalle linked an issue Nov 23, 2024 that may be closed by this pull request
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.

Build warning on Clang with -Wdeprecated-redundant-constexpr-static-def
2 participants