Repository navigation
Conversation
Contributor
There was a problem hiding this comment.
🟡 Changes recommended
The explicit-object accessor returns copies instead of preserving the cv/ref behavior it illustrates.
2 open issues
What changed in this PR
Extends Chapter 09’s function coverage through C++26 without changing executable examples or the C++20 build baseline.
Changes:
- Adds advanced discussion of modern callable APIs, forwarding, and coroutine lifetimes.
- Updates the standards timeline and normalizes existing section numbering.
| File | Description |
|---|---|
01_low_level/09_functions/README.md |
Expands modern function coverage and updates chapter structure. |
Review effort: Balanced
| int value = 0; | ||
| template<class Self> | ||
| decltype(auto) get(this Self&& self) { | ||
| return std::forward<Self>(self).value; |
| * std::quick_exit: doesn't execute static destructors, but does flush critical IO and call handler if exists | ||
| --- | ||
|
|
||
| ## Advanced function rules that matter from C++20 to C++26 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.


Reviewed the nine function examples and expanded advanced treatment of
consteval, C++23 explicit object parameters,invoke_r,move_only_function, C++26function_ref, coroutine frames, and C++26 pack indexing. Normalized all numbered H2 sections to the established chapter contract. Documentation-only and C++20 baseline preserved. The reusable Python chapter-structure checker is introduced separately in PR #15; this chapter's structure is prepared for that validation.