Skip to content

Translate address-of variadic function - #533

Merged
nunoplopes merged 4 commits into
Cpp2Rust:masterfrom
lucic71:address-of-variadic-function
Oct 14, 2026
Merged

nunoplopes merged 4 commits into
Cpp2Rust:masterfrom
lucic71:address-of-variadic-function

Conversation

@lucic71

@lucic71 lucic71 commented Oct 14, 2026

Copy link
Copy Markdown
Contributor

Also needed by variadic lambdas.

&[VaArg] does not fulfil the 'static requirement of FnPtrArg so it cannot be used inside FnPtr. That's. because a borrow of an array cannot live for the entire duration of the program.

Box<[VaArg]> can do that. It's already what we use in refcount for modelling arrays.

@nunoplopes
nunoplopes merged commit ca7ee7e into Cpp2Rust:master Oct 14, 2026
4 of 8 checks passed
@lucic71

lucic71 commented Oct 14, 2026

Copy link
Copy Markdown
Contributor Author

@nunoplopes please region on master

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