Skip to content

[cpyrt] Restore support for non-const void*& arguments - #71

Merged
aaronj0 merged 1 commit into
compiler-research:mainfrom
aaronj0:voidptr-ref-args
Sep 3, 2026
Merged

[cpyrt] Restore support for non-const void*& arguments#71
aaronj0 merged 1 commit into
compiler-research:mainfrom
aaronj0:voidptr-ref-args

Conversation

@aaronj0

@aaronj0 aaronj0 commented Sep 2, 2026

Copy link
Copy Markdown
Collaborator

VoidPtrRefConverter was registered only for "const void*&", so a mutable void*& fell under the general ban on non-const pointer references. Passing an object through an opaque void*& handle is supported by design; the exact-match factory lookup runs before the T*& rejection, which stays in effect for typed pointer references.

From the ROOT migration

VoidPtrRefConverter was registered only for "const void*&", so a mutable
void*& fell under the general ban on non-const pointer references.
Passing an object through an opaque void*& handle is supported by
design; the exact-match factory lookup runs before the T*& rejection,
which stays in effect for typed pointer references.
@aaronj0
aaronj0 requested a review from guitargeek September 2, 2026 12:16

@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! Thank you.

@aaronj0
aaronj0 merged commit b39a064 into compiler-research:main Sep 3, 2026
9 checks passed
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