Skip to content

Error passing bindings to cxx for autocxx subclass using POD with certain fields #1278

Open
@tychedelia

Description

@tychedelia

These two fields cause cxx to reject the bindings generated for our subclass method:

  --- stderr
  Error:
    × cxx couldn't handle our generated bindings - could be a bug in autocxx:
    │ unsupported type: MyPod

It also appears to be an issue using rust::Slice<float> or rust::Vec<float> (float* works fine as expected).

I am a C++ noob but I can't understand what's problematic about these fields.

Expected Behavior

cxx accepts the bindings, or autocxx generates an error when generating the subclass describing why the POD type isn't valid.

Actual Behavior

cxx rejects the bindings without any additional error info.

Steps to Reproduce the Problem

See linked fork above, uncomment "bad fields" in MyPod and run cargo run.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions