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

Fixes for GCC 14 #185

Merged
merged 2 commits into from
May 17, 2024
Merged

Fixes for GCC 14 #185

merged 2 commits into from
May 17, 2024

Conversation

tcbrindle
Copy link
Owner

  • Work around constexpr test failure in test_flatten.cpp
  • Add missing #include in zip.hpp

I'm not sure what changed between GCC13 and 14, but suddenly it doesn't like running the std::string destructor in constexpr here. Fortunately we can just use string_view instead.
A couple of the zip functions use the init-list overload of std::min. Unfortunately this means we need to bring in the <algorithm> header (previously we happened to be getting away without it on all three platforms).

I'd rather avoid dragging in this large header, so a better long-term solution would be to add an overload of our own cmp::min which does the equivalent of std:min({ilist...})
@tcbrindle tcbrindle merged commit ce8132b into main May 17, 2024
25 checks passed
@tcbrindle tcbrindle deleted the pr/gcc_14_fixes branch June 3, 2024 15:52
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