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
Round of fixes from the validation loop on top of the initial rewrite:
* Add `override` to every render_* declaration across the resource-form
examples (allowing_disallowing_methods, args_processing, service,
file_upload, file_upload_with_callback, deferred_with_accumulator) so
signature drift is caught at compile time, matching the pattern that
shared_state.cpp already established.
* deferred_with_accumulator.cpp: switch the closure capture to
`std::make_shared`, drop the stale `sleep(1)` migration comment, and
keep the accumulator self-contained.
* binary_buffer_response.cpp: replace 'string_response' references in
the introductory comments with `http_response::string(...)` so the
prose matches the v2.0 API.
* centralized_authentication.cpp: clean up the trailing usage block and
align the env-var pattern with the rest of the auth examples.
* basic_authentication / digest_authentication / minimal_https /
minimal_https_psk: tighten the v2.0 idiom (smart-ptr ownership,
consistent `with_*` chains, lambda where the class form added no
value), document the TLS priority-string choice on the PSK example.
* empty_response_example.cpp / minimal_deferred.cpp / hello_with_get_arg.cpp:
trim redundant comments and tighten string handling.
* service.cpp / url_registration.cpp / args_processing.cpp /
file_upload[_with_callback].cpp: drop superfluous includes and
comments, prefer `std::make_unique` and string assembly without
per-+ temporaries.
* scripts/check-examples.sh — add `set -eo pipefail`, validate the LOC
counter, guard the disk-to-Makefile.am glob with `nullglob`, and
document the `noinst_PROGRAMS` single-line assumption.
* scripts/verify-installed-examples.sh — `trap` cleanup of the mktemp
prefix, surface make-install stderr on failure, rename the
hard-abort helper to `fatal`, assert that at least one example was
compiled so a broken AM_CXXFLAGS parse cannot silent-pass.
* specs/tasks/M6-release/TASK-040.md and specs/tasks/_index.md: mark
the task Done and tick the action items.
Verified: `make check` 48/48 passing, `scripts/check-examples.sh` and
`scripts/verify-installed-examples.sh` both green, release and
`--enable-debug` builds of every example clean.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
0 commit comments