You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
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.
All 80 failing snippets in docs/examples/{algorithms,ranges,iterators,utilities,concepts} now compile; their 80 lines are deleted from tools/snippet_baseline/gcc.txt. No prelude changes.
Fixed snippets that were wrong, not just incomplete: a sort example that used v both as ints and as records with .score; set operations given a container where an output iterator is required; bare iterator_traits type names (ill-formed); discarded front_inserter/inserter expressions; from_chars without <charconv>; function/template definitions inside statement blocks. Bare name lists became static_asserts or one usage line each.
Nothing since the PR was opened. Rebased onto main before merging: Conflict only in tools/snippet_baseline/gcc.txt (this PR and fix(examples): make container, string and text-processing snippets compile #35 deleted neighbouring lines); resolved by keeping only lines both sides kept — 187 known failures remain, 0 new, 0 stale.
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.
Activity
homer6 commentedon Oct 31, 2026
Delivered in #31.
What changed
docs/examples/{algorithms,ranges,iterators,utilities,concepts}now compile; their 80 lines are deleted fromtools/snippet_baseline/gcc.txt. No prelude changes.vboth as ints and as records with.score; set operations given a container where an output iterator is required; bareiterator_traitstype names (ill-formed); discardedfront_inserter/inserterexpressions;from_charswithout<charconv>; function/template definitions inside statement blocks. Bare name lists becamestatic_asserts or one usage line each.Why
docs/examplesrun with--baselineexits 0.Still open
views::enumerate/chunk/slide/stride, andmove_only_function.homer6 commentedon Oct 31, 2026
Merged in #31 (3328c7c).
What changed
mainbefore merging: Conflict only intools/snippet_baseline/gcc.txt(this PR and fix(examples): make container, string and text-processing snippets compile #35 deleted neighbouring lines); resolved by keeping only lines both sides kept — 187 known failures remain, 0 new, 0 stale.Why
Still open