Skip to content

fix(examples): make snippets compile — memory, metaprogramming, numerics, datetime, io, concurrency, execution, diagnostics, language-support, feature-test-macros, README #29

Closed

Description

@homer6

Part of #20. Drive tools/snippet_baseline/gcc.txt to empty for these folders: fix each failing block (make it self-contained, add a prelude name only if it's truly generic, or use body), or tag it nocompile / compile-fail="…" / needs=… when that's the honest answer. Delete fixed lines from the baseline. Don't change what a page teaches; if a snippet is wrong, fix it and say so in the PR.

Folders: docs/examples/{memory,metaprogramming,numerics,datetime,io,concurrency,execution,diagnostics,language-support,feature-test-macros} and docs/examples/README.md

Acceptance: no baseline entries left for these folders; python3 tools/check_snippets.py <folders> --cxx g++-15 -q --baseline tools/snippet_baseline/gcc.txt exits 0.

Activity

  1. homer6 commented on Oct 31, 2026

    @homer6
    OwnerAuthor

    Delivered in #33.

    What changed

    • All 113 failing blocks in docs/examples/{memory,metaprogramming,numerics,datetime,io,concurrency,execution,diagnostics,language-support,feature-test-macros} now compile on GCC 15; their 113 lines are deleted from the baseline. Existing pages only; no README or prelude changes.
    • 17 snippets that were wrong are fixed (listed in the PR), e.g. the byteswap value, a valarray slice taken with auto, a temporary jthread, a shared-then-exclusive lock deadlock, the pImpl destructor claim, Jan → January, two old-draft reflection examples.

    Why

    Still open

    • Not verified locally: needs=execution (4 blocks, checked only against stdexec), needs=linalg (3), needs=simd (1 — GCC 16's <simd> lacks the math overloads it uses).
  2. homer6 commented on Oct 31, 2026

    @homer6
    OwnerAuthor

    Merged in #33 (02ada47).

    What changed

    Why

    • Merged at the owner's request after review. Checks re-run after the rebase: guidelines 0 failed, examples baseline run exits 0, links OK.

    Still open

    • Nothing for this issue.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions