Repository navigation
fix(post): the reflection search skips aliases and incomplete classes - #265
Merged
Merged
Conversation
Episodes 3 and 4 describe the guards found in a review of the old repo's port: aliases are skipped, incomplete classes are skipped, and the hookless clone() stops at the first match. Examples links move to the merge that contains them and the changed Compiler Explorer ids are updated. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
There was a problem hiding this comment.
🟢 Approval recommended
No active review issues are recorded for the reflection-guard documentation and example updates.
No open issues 🎉
What changed in this PR
Updates the wro.cpp clone series to explain and demonstrate reflection guards that skip aliases and incomplete classes, preventing repeated moves and ill-formed type checks.
Changes:
- Adds alias and completeness guards to episode 4's clone listing and prevents cloning again after a match.
- Explains the guarded namespace searches in episodes 3 and 4.
- Refreshes three Compiler Explorer embeds and pins all four episodes' example links to commit
1dddd1f.
| File | Description |
|---|---|
src/content/posts/2026-12-21-std-polymorphic-instead-of-clone.mdx |
Updates clone guards, explains failure cases, and refreshes embeds and source links. |
src/content/posts/2026-12-19-catch-a-forgotten-clone-override.mdx |
Documents guarded lint searches and refreshes the embed and source link. |
src/content/posts/2026-12-17-deducing-this-clone-without-covariance.mdx |
Updates the example source revision. |
src/content/posts/2026-12-15-clone-helper-ub-forgotten-override.mdx |
Updates the example source revision. |
Review effort: Balanced
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.
Episodes 3 and 4 now describe two guards found by an automated review of the 2014-repo port: the reflection search skips aliases (a using-alias made an rvalue clone move twice) and incomplete classes (a forward declaration was ill-formed), and the hookless clone() stops at the first match. Examples links move to wrocpp/cpp26-reflection-examples#80 (1dddd1f) and the three changed Compiler Explorer ids are updated. Prose-lint clean, production build exits 0.
Generated with Claude Code