Skip to content

C++23: Use std::flat_map#1076

Closed
elazarg wants to merge 1 commit intomainfrom
flat_map
Closed

C++23: Use std::flat_map#1076
elazarg wants to merge 1 commit intomainfrom
flat_map

Conversation

@elazarg
Copy link
Copy Markdown
Collaborator

@elazarg elazarg commented Apr 15, 2026

No description provided.

Signed-off-by: Elazar Gershuni <elazarg@gmail.com>
Copy link
Copy Markdown

@chatgpt-codex-connector chatgpt-codex-connector bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 764db9d73f

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread src/crab/zone_domain.hpp
public:
using Graph = splitdbm::AdaptGraph;
using VertMap = boost::container::flat_map<Variable, splitdbm::VertId>;
using VertMap = std::flat_map<Variable, splitdbm::VertId>;
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P1 Badge Avoid std::flat_map until CI toolchains provide <flat_map>

Switching ZoneDomain::VertMap to std::flat_map makes this TU require the C++23 <flat_map> header, which is not available in common supported environments (e.g., GCC/libstdc++ 13 on Ubuntu 24.04, where #include <flat_map> fails). Because our CI workflow installs the default g++ via apt in .github/workflows/build.yml (Build job), this change can break builds for contributors and CI until the minimum compiler/libstdc++ baseline is raised or guarded.

Useful? React with 👍 / 👎.

@vbpf vbpf deleted a comment from coderabbitai bot Apr 15, 2026
@elazarg
Copy link
Copy Markdown
Collaborator Author

elazarg commented Apr 15, 2026

Apparently ubuntu-latest is not ready for this

@elazarg elazarg closed this Apr 15, 2026
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.

1 participant