Skip to content

Remove out-of-line definition of constexpr static data members#1127

Closed
r-barnes wants to merge 1 commit intoxtensor-stack:masterfrom
r-barnes:richard/remove_constexpr_extern
Closed

Remove out-of-line definition of constexpr static data members#1127
r-barnes wants to merge 1 commit intoxtensor-stack:masterfrom
r-barnes:richard/remove_constexpr_extern

Conversation

@r-barnes
Copy link

Fixes, eg

xsimd/types/xsimd_batch.hpp:284:45: error: out-of-line definition of constexpr static data member is redundant in C++17 and is deprecated [-Werror,-Wdeprecated-redundant-constexpr-static-def]
  284 |     constexpr std::size_t batch_bool<T, A>::size;
      |                                             ^

Fixes, eg
```
xsimd/types/xsimd_batch.hpp:284:45: error: out-of-line definition of constexpr static data member is redundant in C++17 and is deprecated [-Werror,-Wdeprecated-redundant-constexpr-static-def]
  284 |     constexpr std::size_t batch_bool<T, A>::size;
      |                                             ^
```
@serge-sans-paille
Copy link
Contributor

Thanks for the patch! Can you rebase on master? We updated windows config recently...

@serge-sans-paille
Copy link
Contributor

Obsoleted by #1167

@r-barnes r-barnes deleted the richard/remove_constexpr_extern branch September 11, 2025 15:40
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.

2 participants