← Back to Pull requests

C++20: Allow selecting the C++ standard and require C++17 or newer #244

Closed
unknown closed this pull request without merging on Nov 18, 2026 05:45 UTC
View on GitHub
unknown unknown commented on Nov 12, 2026 07:09 UTC
Author

🎉 New feature

Part of gazebosim/gz-cmake#580

Summary


CMAKE_CXX_STANDARD is now only set to 17 when it's not already defined, so it can be selected from outside, e.g. -DCMAKE_CXX_STANDARD=20. Anything below 17 now fails at configure time with a clear message.

The default build is unchanged: same flags and same exported symbols as main. This is a pilot for the rest of the libraries, ahead of the move to C++20.

Backport Policy


  • This is safe to backport to the following versions:

  • - [ ] Jetty
    - [ ] Ionic
    - [ ] Harmonic
    - [ ] Fortress
  • This should not be backported

  • I am not sure

  • Other (fill in yourself)
  • Checklist


  • Signed all commits for DCO

  • Added a screen capture or video to the PR description that demonstrates the feature

  • Added tests

  • Added example and/or tutorial

  • Updated documentation (as needed)

  • Updated migration guide (as needed)

  • Consider updating Python bindings (if the library has them)

  • codecheck passed (See contributing)

  • All tests passed (See test coverage)

  • Updated Bazel files (if adding new files). Created an issue otherwise.

  • While waiting for a review on your PR, please help review another open pull request to support the maintainers

  • Was GenAI used to generate this PR? If so, make sure to add "Assisted-by" to your commits. (See this policy for more info.)
  • Assisted-by: Claude Opus 5.5

    Note to maintainers: Remember to use Squash-Merge and edit the commit message to match the pull request summary while retaining Signed-off-by and Generated-by messages.

    Backports: If this is a backport, please use Rebase and Merge instead.

    Diff: 256 lines (+192 / -64) across 3 files Reviewer: mjcarroll Review duration: 8555m
    All Vouch review confidence checks passed
    Residual risk 0.15 = Change Risk (0.39) × (1 − Review Confidence (0.60)). Review depth and reviewer attention state are adequate.
    Model 1 · Change Risk (XGBoost)
    Score: 0.39 · 256 lines diff across 3 files
    0.39
    Model 2 · Review Depth (DistilBERT)
    Depth Score: 0.17 · 1 substantive comment(s)
    0.17
    Model 3 · Review Timing & Attention
    Session adequacy: 100% · Reviewer familiarity: 35%
    60%
    Bedrock Claude 3 · Risk Narration
    (disconnected)
    Groq
    Groq Risk Narration
    AWS Bedrock is currently disconnected. Generate high-confidence PR triage narration on-demand using Groq.
    Model 1 · Change Risk Attribution
    SHAP Weights
    Diff Size diff_size
    0.332
    Shallow Review Depth shallow_review_depth
    0.289
    Real PR Conversation Timeline
    1 comments
    "Review active on #244"
    general weight: 0.35
    Reviewers
    Assignees
    Unassigned
    Labels
    risk: low confidence: 60.5% reviewed
    Vouch Risk Breakdown
    AI-powered review risk analysis
    Change Risk
    Change Risk · Model 1 (XGBoost)
    Predicted defect probability (0.00–1.00) based on diff churn, modified sensitive files, and author risk history.
    Score: 39.1% (MEDIUM) · Higher = larger blast radius
    39.1%
    Review Confidence
    Review Confidence · Models 2 & 3
    Scrutiny score (0.00–1.00) combining DistilBERT semantic review depth with reviewer familiarity and session dwell time.
    Score: 60.5% · Lower = rushed or shallow review
    60.5%
    Residual Risk
    Residual Risk · Core Equation
    Residual = Change × (1 − Confidence)
    Unmitigated risk surviving review. ≥ 0.65 triggers an automated re-queue to protect production.
    Score: 15.4% · Safe to merge
    15.4%