Skip to content

fix(post): the reflection search skips aliases and incomplete classes - #265

Merged
filipsajdak merged 1 commit into
mainfrom
fix/clone-series-guards
Nov 9, 2026
Merged

filipsajdak merged 1 commit into
mainfrom
fix/clone-series-guards

Conversation

@filipsajdak

Copy link
Copy Markdown
Contributor

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

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>
Copilot AI balanced review requested due to automatic review settings November 9, 2026 23:14
@filipsajdak
filipsajdak merged commit 6493b3f into main Nov 9, 2026
3 checks passed

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟢 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

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants