Skip to content

[cpyrt] Use GetActualClass in cast_actual - #90

Open
aaronj0 wants to merge 1 commit into
compiler-research:mainfrom
aaronj0:cast-actual-getactualclass
Open

[cpyrt] Use GetActualClass in cast_actual#90
aaronj0 wants to merge 1 commit into
compiler-research:mainfrom
aaronj0:cast-actual-getactualclass

Conversation

@aaronj0

@aaronj0 aaronj0 commented Sep 7, 2026

Copy link
Copy Markdown
Collaborator

cast_actual kept the static class, so comparing two proxies of the same object through different base subobjects compared unequal addresses. Reachable when a proxy is not downcast on creation, e.g. for a pinned type. Also drops a stray '&' from the ostream operand name used for the operator<< lookup, and fixes two comment typos.

From the ROOT migration.

cast_actual kept the static class, so comparing two proxies of the same
object through different base subobjects compared unequal addresses.
Reachable when a proxy is not downcast on creation, e.g. for a pinned
type. Also drops a stray '&' from the ostream operand name used for the
operator<< lookup, and fixes two comment typos.
@aaronj0
aaronj0 requested a review from guitargeek September 7, 2026 15:05

@guitargeek guitargeek left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

LGTM! Thanks for porting this over.

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