Skip to content

[ffigen] Support passing C++ classes by value #3603

Closed

Description

@liamappelbe

We could support passing C++ classes by value by converting it to a pointer in out C++ glue code. By-value returns would need to be caught and stored in a new allocated pointer. By value args can just be defererenced with *. I don't think we'd need any new infra on the Dart side.

Activity

  1. Manar-Elhabbal7 commented on Sep 17, 2026

    @Manar-Elhabbal7
    Contributor

    Hello @liamappelbe , I am interested to work on this issue u can assign this to me :)

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

Metadata

Metadata

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions